mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 02:26:23 +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
|
||||
|
||||
@@ -523,4 +523,4 @@ PLUGIN_ADMIN:
|
||||
FRONTMATTER_IGNORE_FIELDS: "Ignore frontmatter fields"
|
||||
FRONTMATTER_IGNORE_FIELDS_HELP: "Certain frontmatter fields may contain Twig but should not be processed, such as 'forms'"
|
||||
PACKAGE_X_INSTALLED_SUCCESSFULLY: "Package %s installed successfully"
|
||||
NEEDS_GRAV_1_1: "<strong>IMPORTANT</strong>: The Admin plugin version 1.1 <strong>requires Grav 1.1</strong>. You are running Grav 1.0. <strong>Update Grav now</strong>."
|
||||
NEEDS_GRAV_1_1: "<i class=\"fa fa-exclamation-triangle\"></i> <strong>You are running Grav v%s</strong>. You must update to the latest <strong>Grav v1.1.x</strong> release in order to ensure compatibility. This may require switching to <strong>Testing GPM releases</strong> in the System configuration."
|
||||
|
||||
Reference in New Issue
Block a user