Make View->shouldEmitHooks more robust
This commit is contained in:
parent
8d0e162daf
commit
244d4e1399
|
@ -781,6 +781,9 @@ class View {
|
|||
return false;
|
||||
}
|
||||
$defaultRoot = Filesystem::getRoot();
|
||||
if ($defaultRoot === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->fakeRoot === $defaultRoot) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue