version update with version notice

This commit is contained in:
Andy Miller
2016-04-26 12:10:56 -06:00
parent fd3888f486
commit 99aaebdf1a
4 changed files with 15 additions and 1 deletions

View File

@@ -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

View File

@@ -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);
}

View File

@@ -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:

View File

@@ -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."