mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
version update with version notice
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.0.10
|
||||
## 04/26/2016
|
||||
|
||||
1. [](#new)
|
||||
* Added an incompatibility notice when running Admin Plugin 1.0.x on Grav 1.1.x
|
||||
|
||||
# v1.0.9
|
||||
## 02/11/2016
|
||||
|
||||
|
||||
@@ -244,6 +244,13 @@ class AdminPlugin extends Plugin
|
||||
{
|
||||
// Only activate admin if we're inside the admin path.
|
||||
if ($this->active) {
|
||||
|
||||
// Temporary check for 1.1 versions
|
||||
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', GRAV_VERSION]), 'error');
|
||||
}
|
||||
|
||||
if (php_sapi_name() == 'cli-server') {
|
||||
throw new \RuntimeException('The Admin Plugin cannot run on the PHP built-in webserver. It needs Apache, Nginx or another full-featured web server.', 500);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: Admin Panel
|
||||
version: 1.0.9
|
||||
version: 1.0.10
|
||||
description: Adds an advanced administration panel to manage your site
|
||||
icon: empire
|
||||
author:
|
||||
|
||||
@@ -478,4 +478,5 @@ PLUGIN_ADMIN:
|
||||
ADD_FOLDER: "Add Folder"
|
||||
PROXY_URL: "Proxy URL"
|
||||
PROXY_URL_HELP: "Enter the proxy HOST or IP and PORT"
|
||||
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>Admin plugin v1.1.x</strong> 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