Permalink
Browse files

MINOR Using LeftAndMain->Link() $action parameter correctly in getSit…

…eTreeFor()
  • Loading branch information...
1 parent d68ec39 commit b326f03ed7a46cf5556a64f0afb70bf33aba67fc @chillu chillu committed Jun 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/code/LeftAndMain.php
@@ -566,7 +566,7 @@ function getSiteTreeFor($className, $rootID = null, $childrenMethod = null, $num
$titleEval = '
"<li id=\"record-$child->ID\" data-id=\"$child->ID\" class=\"" . $child->CMSTreeClasses($extraArg) . "\">" .
"<ins class=\"jstree-icon\">&nbsp;</ins>" .
- "<a href=\"" . Controller::join_links(substr($extraArg->Link(),0,-1), "show", $child->ID) . "\" title=\"'
+ "<a href=\"" . Controller::join_links($extraArg->Link("show"), $child->ID) . "\" title=\"'
. _t('LeftAndMain.PAGETYPE','Page type: ')
. '".$child->class."\" ><ins class=\"jstree-icon\">&nbsp;</ins>" . ($child->TreeTitle) .
"</a>"

0 comments on commit b326f03

Please sign in to comment.