BUGFIX URLs to security groups in CMS were not linked correctly. Removed Director::link() references and replaced with strings. Director::link() is deprecated and shouldn't be used.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63785 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-10-07 22:59:47 +00:00
parent ae957f8218
commit 5e0277cea4

View File

@ -208,7 +208,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
$siteTree = $obj->getChildrenAsUL("",
' "<li id=\"record-$child->ID\" class=\"$child->class " . ($child->Locked ? " nodelete" : "") . ' .
' ($extraArg->isCurrentPage($child) ? " current" : "") . "\">" . ' .
' "<a href=\"" . Director::link("admin", "show", $child->ID) . "\" >" . $child->TreeTitle() . "</a>" ',$this);
' "<a href=\"admin/security/show/$child->ID\" >" . $child->TreeTitle() . "</a>" ',$this);
$siteTree = "<ul id=\"sitetree\" class=\"tree unformatted\">" .
"<li id=\"record-0\" class=\"Root\">" .
@ -255,9 +255,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
}
public function Link($action = null) {
//if(!$action) $action = "index";
//return "admin/security/$action/" . $this->currentPageID();
return "admin/security/$action/";
return "admin/security/$action";
}
public function listmembers( $baseGroup = null ) {