Back out getPersonalTools from r79014 which did not belong in that commit.
authorDaniel Friesen <dantman@users.mediawiki.org>
Sun, 26 Dec 2010 13:45:13 +0000 (13:45 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Sun, 26 Dec 2010 13:45:13 +0000 (13:45 +0000)
includes/SkinTemplate.php

index cbdfed4..0a18bb7 100644 (file)
@@ -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 <a> instead
-                       # of the <li> 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...