Skip to content

Commit

Permalink
Add backwards compatibility for $GLOBALS['zencache']
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Feb 26, 2016
1 parent f8f27df commit e42f1bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/includes/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
require_once dirname(__FILE__).'/stub.php';

if (!Conflicts::check()) {
$GLOBALS[GLOBAL_NS] = new Plugin();
$GLOBALS[GLOBAL_NS] = new Plugin();
$GLOBALS['zencache'] = $GLOBALS[GLOBAL_NS]; // Back compat.

add_action('plugins_loaded', function() {
require_once dirname(__FILE__).'/api.php';
});
Expand Down

0 comments on commit e42f1bc

Please sign in to comment.