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:
Sean Harvey 2008-11-06 23:47:28 +00:00
parent e052d533f9
commit a0c87179e5

View File

@ -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);
} }