X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWithoutinterwiki.php;h=bd01461395aa82e0911b2903e1058f194d362dac;hb=ff9f2fa33719753ff0c708f9b4a84c57593b9e58;hp=edb1558645252480a2decff8773d17c8a3c732cd;hpb=88428ee2ff6b0fa8aa08e0ab33a35d324514bb8b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWithoutinterwiki.php b/includes/specials/SpecialWithoutinterwiki.php index edb1558645..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,11 +49,17 @@ 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" . - Xml::inputLabel( $this->msg( 'allpagesprefix' )->text(), 'prefix', 'wiprefix', 20, $prefix ) . "\n" . + Xml::inputLabel( + $this->msg( 'allpagesprefix' )->text(), + 'prefix', + 'wiprefix', + 20, + $prefix + ) . "\n" . Xml::submitButton( $this->msg( 'withoutinterwiki-submit' )->text() ) . "\n" . Html::closeElement( 'fieldset' ) . "\n" . Html::closeElement( 'form' );