BUGFIX Don't mark pages as changed when setting HasBrokenFile=1 through Filesystem::sync() and SiteTree->onBeforeWrite() - its an internal change that shouldn't affect the page publication status (AIR-28)

This commit is contained in:
Ingo Schommer 2011-09-01 14:15:38 +02:00
parent 5257c35dff
commit 9af805186b

View File

@ -148,8 +148,9 @@ class Filesystem extends Object {
if(class_exists('SiteTree')) {
if(class_exists('Subsite')) Subsite::$disable_subsite_filter = true;
foreach(DataObject::get("SiteTree") as $page) {
// syncLinkTracking is called by SiteTree::onBeforeWrite()
$page->write();
// syncLinkTracking is called by SiteTree::onBeforeWrite().
// Call it without affecting the page version, as this is an internal change.
$page->writeWithoutVersion();
}
if(class_exists('Subsite')) Subsite::$disable_subsite_filter = false;
}