Author: Lars Michelsen <[email protected]> Date: Wed Jul 17 18:09:25 2013 +0200 Committer: Lars Michelsen <[email protected]> Commit-Date: Wed Jul 17 18:09:25 2013 +0200
Using global CORE var in modules now --- share/server/core/classes/CoreModule.php | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/share/server/core/classes/CoreModule.php b/share/server/core/classes/CoreModule.php index b345d0f..e667b2b 100644 --- a/share/server/core/classes/CoreModule.php +++ b/share/server/core/classes/CoreModule.php @@ -26,7 +26,6 @@ * @author Lars Michelsen <[email protected]> */ abstract class CoreModule { - protected $CORE = null; protected $UHANDLER = null; protected $FHANDLER = null; @@ -271,7 +270,7 @@ abstract class CoreModule { * Returns null when nothing changed or a structure of the changed objects */ protected function checkFilesChanged($files) { - global $AUTHORISATION; + global $AUTHORISATION, $CORE; $changed = array(); foreach($files AS $file) { @@ -285,7 +284,7 @@ abstract class CoreModule { // Try to fetch the current age of the requested file $cur_age = null; if($ty == 'maincfg') { - $cur_age = $this->CORE->getMainCfg()->getConfigFileAge(); + $cur_age = $CORE->getMainCfg()->getConfigFileAge(); } elseif($ty == 'map') { if($AUTHORISATION->isPermitted('Map', 'view', $name)) { ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
