From 57ee785274ee94b4ba04be6bcfb553cc1deb54aa Mon Sep 17 00:00:00 2001 From: Dirk Adler Date: Thu, 9 Oct 2014 22:10:03 +0200 Subject: [PATCH] fixes line indentation --- code/model/Translatable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 221f54e..78fef2c 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -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