From 7a3ba6e5b3e17172bee5535526afbeb6ae9fd3e1 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sat, 8 Apr 2017 23:23:19 +0200 Subject: [PATCH] Fix #3: Administration unavailable under XH 1.7 Since CMSimple_XH 1.7 doesn't import arbitrary global variables from the query string anymore, we have to use XH_wantsPluginAdministration() to detect whether the plugin administration has been requested. For BC we also keep the old check for the global variable as fallback. --- admin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin.php b/admin.php index 1d5c073..ca35839 100644 --- a/admin.php +++ b/admin.php @@ -25,7 +25,8 @@ } initvar('calendar'); -if($calendar){ +if(function_exists('XH_wantsPluginAdministration') && XH_wantsPluginAdministration('calendar') + || $calendar){ $plugin = basename(dirname(__FILE__),"/"); //Helper-functions