mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Checking for existence of Subsite correctly in Filesystem::sync()
This commit is contained in:
parent
cf408d766a
commit
919618e5aa
@ -152,7 +152,7 @@ class Filesystem extends Object {
|
|||||||
// Update the image tracking of all pages
|
// Update the image tracking of all pages
|
||||||
if($syncLinkTracking) {
|
if($syncLinkTracking) {
|
||||||
if(class_exists('SiteTree')) {
|
if(class_exists('SiteTree')) {
|
||||||
$origDisableSubsiteFilter = Subsite::$disable_subsite_filter;
|
if(class_exists('Subsite')) $origDisableSubsiteFilter = Subsite::$disable_subsite_filter;
|
||||||
if(class_exists('Subsite')) Subsite::$disable_subsite_filter = true;
|
if(class_exists('Subsite')) Subsite::$disable_subsite_filter = true;
|
||||||
foreach(DataObject::get("SiteTree") as $page) {
|
foreach(DataObject::get("SiteTree") as $page) {
|
||||||
// syncLinkTracking is called by SiteTree::onBeforeWrite().
|
// syncLinkTracking is called by SiteTree::onBeforeWrite().
|
||||||
|
Loading…
Reference in New Issue
Block a user