mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
1c0b6163f3
commit
9281b28339
@ -129,6 +129,14 @@ class Filesystem extends Object {
|
||||
}
|
||||
}
|
||||
|
||||
// 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',
|
||||
sprintf('Sync complete: %s items created, %d items deleted', (int) $results['added'], (int) $results['deleted'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user