mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2041 from Mark-M/patch-1
FIX Deprecation $manifest not in global scope
This commit is contained in:
commit
d5510f54b3
@ -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…
Reference in New Issue
Block a user