BUGFIX: Update file link tracking as part of Filesystem::sync() (from r89907) (from r96722)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102345 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-12 01:49:37 +00:00
parent 1c0b6163f3
commit 9281b28339

View File

@ -128,6 +128,14 @@ class Filesystem extends Object {
unset($file);
}
}
// Update the image tracking of all pages
if(class_exists('Subsite')) Subsite::$disable_subsite_filter = true;
foreach(DataObject::get("SiteTree") as $page) {
// syncLinkTracking is called by SiteTree::onBeforeWrite()
$page->write();
}
if(class_exists('Subsite')) Subsite::$disable_subsite_filter = false;
return _t(
'Filesystem.SYNCRESULTS',