From 1a19e27bd01d4d2c964d8703a67755e179d84478 Mon Sep 17 00:00:00 2001 From: Mark-M Date: Fri, 31 May 2013 15:32:10 +0200 Subject: [PATCH] FIX Deprecation $manifest not in global scope $manifest is not in the global scope, patched it to use SS_ClassLoader to get the manifest instead. --- dev/Deprecation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Deprecation.php b/dev/Deprecation.php index 0b2545d26..5eaebf004 100644 --- a/dev/Deprecation.php +++ b/dev/Deprecation.php @@ -88,7 +88,7 @@ class Deprecation { $callingfile = realpath($backtrace[1]['file']); - global $manifest; + $manifest = SS_ClassLoader::instance()->getManifest(); foreach ($manifest->getModules() as $name => $path) { if (strpos($callingfile, realpath($path)) === 0) { return $name;