mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-05 17:55:37 +02:00
updated message
This commit is contained in:
@@ -243,9 +243,10 @@ class AdminPlugin extends Plugin
|
||||
// Only activate admin if we're inside the admin path.
|
||||
if ($this->active) {
|
||||
|
||||
// Test for correct Grav 1.1 version
|
||||
if (version_compare(GRAV_VERSION, '1.1.0-beta.1', '<')) {
|
||||
$messages = $this->grav['messages'];
|
||||
$messages->add($this->grav['language']->translate('PLUGIN_ADMIN.NEEDS_GRAV_1_1'), 'error');
|
||||
$messages->add($this->grav['language']->translate(['PLUGIN_ADMIN.NEEDS_GRAV_1_1', GRAV_VERSION]), 'error');
|
||||
}
|
||||
|
||||
// Have a unique Admin-only Cache key
|
||||
|
||||
Reference in New Issue
Block a user