Fix profiling
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 10 Feb 2011 16:08:44 +0000 (16:08 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 10 Feb 2011 16:08:44 +0000 (16:08 +0000)
includes/Linker.php

index 26d2865..a74fb77 100644 (file)
@@ -1667,11 +1667,10 @@ class Linker {
         *   escape), or false for no accesskey attribute
         */
        public function accesskey( $name ) {
-               wfProfileIn( __METHOD__ );
-
                if ( isset( $this->accesskeycache[$name] ) ) {
                        return $this->accesskeycache[$name];
                }
+               wfProfileIn( __METHOD__ );
 
                $message = wfMessage( "accesskey-$name" );