mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
MINOR Tidied up messy code formatting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65418 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e052d533f9
commit
a0c87179e5
@ -454,20 +454,19 @@ JS;
|
|||||||
* Returns a subtree of items underneat the given folder.
|
* Returns a subtree of items underneat the given folder.
|
||||||
*/
|
*/
|
||||||
public function getsubtree() {
|
public function getsubtree() {
|
||||||
$obj = DataObject::get_by_id("Folder", $_REQUEST['ID']);
|
$obj = DataObject::get_by_id('Folder', $_REQUEST['ID']);
|
||||||
$obj->setMarkingFilter("ClassName", "Folder");
|
$obj->setMarkingFilter('ClassName', 'Folder');
|
||||||
$obj->markPartialTree();
|
$obj->markPartialTree();
|
||||||
|
|
||||||
$results = $obj->getChildrenAsUL("",
|
$results = $obj->getChildrenAsUL(
|
||||||
|
'',
|
||||||
' "<li id=\"record-$child->ID\" class=\"$child->class" . $child->markingClasses() . ($extraArg->isCurrentPage($child) ? " current" : "") . "\">" . ' .
|
'"<li id=\"record-$child->ID\" class=\"$child->class" . $child->markingClasses() . ($extraArg->isCurrentPage($child) ? " current" : "") . "\">" . ' .
|
||||||
|
'"<a href=\"" . Director::link(substr($extraArg->Link(),0,-1), "show", $child->ID) . "\" >" . $child->TreeTitle() . "</a>" ',
|
||||||
' "<a href=\"" . Director::link(substr($extraArg->Link(),0,-1), "show", $child->ID) . "\" >" . $child->TreeTitle() . "</a>" ',
|
$this,
|
||||||
|
true
|
||||||
$this, true);
|
);
|
||||||
|
|
||||||
return substr(trim($results), 4,-5);
|
|
||||||
|
|
||||||
|
return substr(trim($results), 4, -5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user