mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00:00
fixes line indentation
This commit is contained in:
parent
ad0d7ddfe6
commit
57ee785274
@ -1799,13 +1799,13 @@ class Translatable extends DataExtension implements PermissionProvider {
|
|||||||
$IDFilter = ($this->owner->ID) ? "AND \"SiteTree\".\"ID\" <> {$this->owner->ID}" : null;
|
$IDFilter = ($this->owner->ID) ? "AND \"SiteTree\".\"ID\" <> {$this->owner->ID}" : null;
|
||||||
$parentFilter = null;
|
$parentFilter = null;
|
||||||
|
|
||||||
if(Config::inst()->get('SiteTree', 'nested_urls')) {
|
if (Config::inst()->get('SiteTree', 'nested_urls')) {
|
||||||
if($this->owner->ParentID) {
|
if ($this->owner->ParentID) {
|
||||||
$parentFilter = " AND \"SiteTree\".\"ParentID\" = {$this->owner->ParentID}";
|
$parentFilter = " AND \"SiteTree\".\"ParentID\" = {$this->owner->ParentID}";
|
||||||
} else {
|
} else {
|
||||||
$parentFilter = ' AND "SiteTree"."ParentID" = 0';
|
$parentFilter = ' AND "SiteTree"."ParentID" = 0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$existingPage = SiteTree::get()
|
$existingPage = SiteTree::get()
|
||||||
// disable get_one cache, as this otherwise may pick up results from when locale_filter was on
|
// disable get_one cache, as this otherwise may pick up results from when locale_filter was on
|
||||||
|
Loading…
x
Reference in New Issue
Block a user