From: Kunal Mehta Date: Wed, 6 Aug 2014 22:58:03 +0000 (+0100) Subject: SpecialWithoutInterwiki: Use Config instead of globals X-Git-Tag: 1.31.0-rc.0~14551^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=bea6124dea442541ba2bc1b6e3286daf709b43ee;p=lhc%2Fweb%2Fwiklou.git SpecialWithoutInterwiki: Use Config instead of globals Change-Id: I19bf57bdbf0c793cba25033d219d35353f3ae936 --- diff --git a/includes/specials/SpecialWithoutinterwiki.php b/includes/specials/SpecialWithoutinterwiki.php index e05faefb97..bd01461395 100644 --- a/includes/specials/SpecialWithoutinterwiki.php +++ b/includes/specials/SpecialWithoutinterwiki.php @@ -41,8 +41,6 @@ class WithoutInterwikiPage extends PageQueryPage { } function getPageHeader() { - global $wgScript; - # Do not show useless input form if special page is cached if ( $this->isCached() ) { return ''; @@ -51,7 +49,7 @@ class WithoutInterwikiPage extends PageQueryPage { $prefix = $this->prefix; $t = $this->getPageTitle(); - return Html::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . "\n" . + return Html::openElement( 'form', array( 'method' => 'get', 'action' => wfScript() ) ) . "\n" . Html::openElement( 'fieldset' ) . "\n" . Html::element( 'legend', null, $this->msg( 'withoutinterwiki-legend' )->text() ) . "\n" . Html::hidden( 'title', $t->getPrefixedText() ) . "\n" .