Kaldari has uploaded a new change for review.
https://gerrit.wikimedia.org/r/196078
Change subject: Moving wgWikiGrokDebug check from onBeforePageDisplay to
isUIEnabled
......................................................................
Moving wgWikiGrokDebug check from onBeforePageDisplay to isUIEnabled
Less redundant code.
Change-Id: I4ee168cf5aad7c409014b3bdadb548ff4084e648
---
M includes/Hooks.php
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiGrok
refs/changes/78/196078/1
diff --git a/includes/Hooks.php b/includes/Hooks.php
index 6a74059..9eb158d 100644
--- a/includes/Hooks.php
+++ b/includes/Hooks.php
@@ -25,8 +25,7 @@
*/
protected static function isUIEnabled() {
$config = self::getConfig();
- return $config->get( 'WikiGrokUIEnable')
- && ( class_exists( 'ApiCentralAuthToken' ) ||
$config->get( 'WikiGrokDebug' ) );
+ return $config->get( 'WikiGrokUIEnable') && class_exists(
'ApiCentralAuthToken' );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/196078
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4ee168cf5aad7c409014b3bdadb548ff4084e648
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiGrok
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits