From: Daniel Friesen Date: Sun, 26 Dec 2010 13:45:13 +0000 (+0000) Subject: Back out getPersonalTools from r79014 which did not belong in that commit. X-Git-Tag: 1.31.0-rc.0~33084 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=15c26d343ba975bec4688e31bbf6ecc7d721028a;p=lhc%2Fweb%2Fwiklou.git Back out getPersonalTools from r79014 which did not belong in that commit. --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index cbdfed4f5b..0a18bb74f3 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1289,32 +1289,6 @@ abstract class BaseTemplate extends QuickTemplate { return $toolbox; } - /** - * Create an array of personal tools items from the data in the quicktemplate - * stored by SkinTemplate. - * The resulting array is built acording to a format intended to be passed - * through makeListItem to generate the html. - * This is in reality the same list as already stored in personal_urls - * however it is reformatted so that you can just pass the individual items - * to makeListItem instead of hardcoding the element creation boilerplate. - */ - function getPersonalTools() { - $personal_tools = array(); - foreach( $this->data['personal_urls'] as $key => $ptool ) { - # The class on a personal_urls item is meant to go on the instead - # of the
  • so we have to use a single item "links" array instead - # of using most of the personal_url's keys directly - $personal_tools[$key] = array(); - $personal_tools[$key]["links"][] = array(); - $personal_tools[$key]["links"][0]["single-id"] = $personal_tools[$key]["id"] = "pt-$key"; - $personal_tools[$key]["active"] = $ptool["active"]; - foreach ( array("href", "class", "text") as $k ) { - $personal_tools[$key]["links"][0][$k] = $ptool[$k]; - } - } - return $personal_tools; - } - /** * Makes a link, usually used by makeListItem to generate a link for an item * in a list used in navigation lists, portlets, portals, sidebars, etc...