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.
This commit is contained in:
Mark-M 2013-05-31 15:32:10 +02:00
parent 9511d72aa9
commit 1a19e27bd0

View File

@ -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;