mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02: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.
|
||||
*/
|
||||
public function getsubtree() {
|
||||
$obj = DataObject::get_by_id("Folder", $_REQUEST['ID']);
|
||||
$obj->setMarkingFilter("ClassName", "Folder");
|
||||
$obj = DataObject::get_by_id('Folder', $_REQUEST['ID']);
|
||||
$obj->setMarkingFilter('ClassName', 'Folder');
|
||||
$obj->markPartialTree();
|
||||
|
||||
$results = $obj->getChildrenAsUL("",
|
||||
|
||||
' "<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>" ',
|
||||
|
||||
$this, true);
|
||||
|
||||
return substr(trim($results), 4,-5);
|
||||
$results = $obj->getChildrenAsUL(
|
||||
'',
|
||||
'"<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>" ',
|
||||
$this,
|
||||
true
|
||||
);
|
||||
|
||||
return substr(trim($results), 4, -5);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user