profiling tooltips. yes, they have to be profiled!
authorDomas Mituzas <midom@users.mediawiki.org>
Tue, 13 Nov 2007 09:03:49 +0000 (09:03 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Tue, 13 Nov 2007 09:03:49 +0000 (09:03 +0000)
includes/Linker.php

index e61578d..94f6b05 100644 (file)
@@ -1337,6 +1337,8 @@ class Linker {
         *   element (e.g., ' title="This does something [x]" accesskey="x"').
         */
        public function tooltipAndAccesskey($name) {
+               $fname="Linker::tooltipAndAccesskey";
+               wfProfileIn($fname);
                $out = '';
 
                $tooltip = wfMsg('tooltip-'.$name);
@@ -1352,6 +1354,7 @@ class Linker {
                } elseif ($out) {
                        $out .= '"';
                }
+               wfProfileOut($fname);
                return $out;
        }