mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Fix coding conventions
This commit is contained in:
parent
4b19987ad2
commit
cf2b0417cb
@ -434,17 +434,17 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
// Provide better defaults from filter
|
// Provide better defaults from filter
|
||||||
$filter = $this->getSearchFilter();
|
$filter = $this->getSearchFilter();
|
||||||
if ($filter) {
|
if ($filter) {
|
||||||
if (!$childrenMethod) {
|
if (!$childrenMethod) {
|
||||||
$childrenMethod = $filter->getChildrenMethod();
|
$childrenMethod = $filter->getChildrenMethod();
|
||||||
}
|
}
|
||||||
if (!$numChildrenMethod) {
|
if (!$numChildrenMethod) {
|
||||||
$numChildrenMethod = $filter->getNumChildrenMethod();
|
$numChildrenMethod = $filter->getNumChildrenMethod();
|
||||||
}
|
}
|
||||||
if (!$filterFunction) {
|
if (!$filterFunction) {
|
||||||
$filterFunction = function ($node) use ($filter) {
|
$filterFunction = function ($node) use ($filter) {
|
||||||
return $filter->isPageIncluded($node);
|
return $filter->isPageIncluded($node);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build set from node and begin marking
|
// Build set from node and begin marking
|
||||||
@ -495,12 +495,12 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
'listViewLink' => Controller::join_links(
|
'listViewLink' => Controller::join_links(
|
||||||
$linkWithSearch,
|
$linkWithSearch,
|
||||||
'?view=listview&ParentID=' . $node->ID
|
'?view=listview&ParentID=' . $node->ID
|
||||||
),
|
),
|
||||||
'rootTitle' => $rootTitle,
|
'rootTitle' => $rootTitle,
|
||||||
'extraClass' => $this->getTreeNodeClasses($node),
|
'extraClass' => $this->getTreeNodeClasses($node),
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get extra CSS classes for a page's tree node
|
* Get extra CSS classes for a page's tree node
|
||||||
|
Loading…
Reference in New Issue
Block a user