jenkins-bot has submitted this change and it was merged.
Change subject: Use getConfig in HistoryAction for global
......................................................................
Use getConfig in HistoryAction for global
Change-Id: I4a3bb4149c3c1da75215e0e6336c89e4a00fc8e4
---
M includes/actions/HistoryAction.php
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/actions/HistoryAction.php
b/includes/actions/HistoryAction.php
index 66ea245..523da68 100644
--- a/includes/actions/HistoryAction.php
+++ b/includes/actions/HistoryAction.php
@@ -472,7 +472,6 @@
* @return string HTML output
*/
function getStartBody() {
- global $wgUseMediaWikiUIEverywhere;
$this->lastRow = false;
$this->counter = 1;
$this->oldIdChecked = 0;
@@ -486,7 +485,7 @@
// Button container stored in $this->buttons for re-use in
getEndBody()
$this->buttons = '<div>';
$className = 'historysubmit
mw-history-compareselectedversions-button';
- if ( $wgUseMediaWikiUIEverywhere ) {
+ if ( $this->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
$className .= ' mw-ui-button mw-ui-constructive';
}
$this->buttons .= $this->submitButton( $this->msg(
'compareselectedversions' )->text(),
--
To view, visit https://gerrit.wikimedia.org/r/155794
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4a3bb4149c3c1da75215e0e6336c89e4a00fc8e4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: IAlex <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits