From 4922c1b57f7ba98571686383303dcbbadee43b22 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 22 Aug 2014 21:48:49 +0200 Subject: [PATCH] Use getConfig in HistoryAction for global Change-Id: I4a3bb4149c3c1da75215e0e6336c89e4a00fc8e4 --- includes/actions/HistoryAction.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 66ea2453b8..523da686c4 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -472,7 +472,6 @@ class HistoryPager extends ReverseChronologicalPager { * @return string HTML output */ function getStartBody() { - global $wgUseMediaWikiUIEverywhere; $this->lastRow = false; $this->counter = 1; $this->oldIdChecked = 0; @@ -486,7 +485,7 @@ class HistoryPager extends ReverseChronologicalPager { // Button container stored in $this->buttons for re-use in getEndBody() $this->buttons = '
'; $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(), -- 2.20.1