MINOR fix failing tests (from r90509)

This commit is contained in:
Tom Rix 2010-03-01 21:40:36 +00:00
parent d2da1fe03e
commit 3bdaa1404c

View File

@ -79,7 +79,7 @@ class SubsitesVirtualPage extends VirtualPage {
function syncLinkTracking() {
$oldState = Subsite::$disable_subsite_filter;
Subsite::$disable_subsite_filter = true;
$this->HasBrokenLink = DataObject::get_by_id('SiteTree', $this->CopyContentFromID) ? false : true;
if ($this->CopyContentFromID) $this->HasBrokenLink = DataObject::get_by_id('SiteTree', $this->CopyContentFromID) ? false : true;
Subsite::$disable_subsite_filter = $oldState;
}