diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /extensions/Gadgets/GadgetHooks.php | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
Diffstat (limited to 'extensions/Gadgets/GadgetHooks.php')
-rw-r--r-- | extensions/Gadgets/GadgetHooks.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/extensions/Gadgets/GadgetHooks.php b/extensions/Gadgets/GadgetHooks.php index ee1f4081..64c7a3f4 100644 --- a/extensions/Gadgets/GadgetHooks.php +++ b/extensions/Gadgets/GadgetHooks.php @@ -32,12 +32,10 @@ class GadgetHooks { */ public static function articleSaveComplete( $article, $user, $text ) { // update cache if MediaWiki:Gadgets-definition was edited - wfProfileIn( __METHOD__ ); $title = $article->getTitle(); if ( $title->getNamespace() == NS_MEDIAWIKI && $title->getText() == 'Gadgets-definition' ) { Gadget::loadStructuredList( $text ); } - wfProfileOut( __METHOD__ ); return true; } @@ -73,10 +71,8 @@ class GadgetHooks { * @return bool */ public static function getPreferences( $user, &$preferences ) { - wfProfileIn( __METHOD__ ); $gadgets = Gadget::loadStructuredList(); if ( !$gadgets ) { - wfProfileOut( __METHOD__ ); return true; } @@ -132,7 +128,6 @@ class GadgetHooks { 'prefix' => 'gadget-', 'default' => $default, ); - wfProfileOut( __METHOD__ ); return true; } @@ -167,11 +162,8 @@ class GadgetHooks { * @return bool */ public static function beforePageDisplay( $out ) { - wfProfileIn( __METHOD__ ); - $gadgets = Gadget::loadList(); if ( !$gadgets ) { - wfProfileOut( __METHOD__ ); return true; } @@ -213,7 +205,6 @@ class GadgetHooks { self::applyScript( $page, $out ); } } - wfProfileOut( __METHOD__ ); return true; } |