fixes line indentation

This commit is contained in:
Dirk Adler 2014-10-09 22:10:03 +02:00
parent ad0d7ddfe6
commit 57ee785274

View File

@ -1799,13 +1799,13 @@ class Translatable extends DataExtension implements PermissionProvider {
$IDFilter = ($this->owner->ID) ? "AND \"SiteTree\".\"ID\" <> {$this->owner->ID}" : null;
$parentFilter = null;
if(Config::inst()->get('SiteTree', 'nested_urls')) {
if($this->owner->ParentID) {
if (Config::inst()->get('SiteTree', 'nested_urls')) {
if ($this->owner->ParentID) {
$parentFilter = " AND \"SiteTree\".\"ParentID\" = {$this->owner->ParentID}";
} else {
$parentFilter = ' AND "SiteTree"."ParentID" = 0';
}
}
}
$existingPage = SiteTree::get()
// disable get_one cache, as this otherwise may pick up results from when locale_filter was on