summaryrefslogtreecommitdiff
path: root/extensions/Gadgets/GadgetHooks.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:30:02 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:30:02 -0400
commit1de335ad3f395ca6861085393ba366a9e3fb4a0d (patch)
treef1fdd326034e05177596851be6a7127615d81498 /extensions/Gadgets/GadgetHooks.php
parent9c75fa8ff6d4d38ef552c00fef5969fb154765e8 (diff)
parentf6d65e533c62f6deb21342d4901ece24497b433e (diff)
Merge commit 'f6d65'
# Conflicts: # skins/ArchLinux/ArchLinux.php
Diffstat (limited to 'extensions/Gadgets/GadgetHooks.php')
-rw-r--r--extensions/Gadgets/GadgetHooks.php9
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;
}