mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
9511d72aa9
commit
1a19e27bd0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user