Skip to content

Commit

Permalink
Fix #3: Administration unavailable under XH 1.7
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cmb69 committed Apr 8, 2017
1 parent 7c64784 commit 7a3ba6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
}

initvar('calendar');
if($calendar){
if(function_exists('XH_wantsPluginAdministration') && XH_wantsPluginAdministration('calendar')
|| $calendar){
$plugin = basename(dirname(__FILE__),"/");

//Helper-functions
Expand Down

0 comments on commit 7a3ba6e

Please sign in to comment.