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;