X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialPrefixindex.php;h=d92010a4b86f48ff5ed444eff4996b383235c82c;hb=c54766586acab549f186e81eeab259845112809d;hp=2a1bf11fe2a2f542d3d4c83dab85954f6c32b64f;hpb=9ec7cb086847a18de33df4931759f3cc4944fc38;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialPrefixindex.php b/includes/specials/SpecialPrefixindex.php index 2a1bf11fe2..d92010a4b8 100644 --- a/includes/specials/SpecialPrefixindex.php +++ b/includes/specials/SpecialPrefixindex.php @@ -101,10 +101,11 @@ class SpecialPrefixindex extends SpecialAllPages { * @return string */ protected function namespacePrefixForm( $namespace = NS_MAIN, $from = '' ) { - global $wgScript; - $out = Xml::openElement( 'div', array( 'class' => 'namespaceoptions' ) ); - $out .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ); + $out .= Xml::openElement( + 'form', + array( 'method' => 'get', 'action' => $this->getConfig()->get( 'Script' ) ) + ); $out .= Html::hidden( 'title', $this->getPageTitle()->getPrefixedText() ); $out .= Xml::openElement( 'fieldset' ); $out .= Xml::element( 'legend', null, $this->msg( 'allpages' )->text() ); @@ -179,7 +180,7 @@ class SpecialPrefixindex extends SpecialAllPages { list( $namespace, $prefixKey, $prefix ) = $prefixList; list( /* $fromNS */, $fromKey, ) = $fromList; - ### @todo FIXME: Should complain if $fromNs != $namespace + # ## @todo FIXME: Should complain if $fromNs != $namespace $dbr = wfGetDB( DB_SLAVE ); @@ -204,7 +205,7 @@ class SpecialPrefixindex extends SpecialAllPages { ) ); - ### @todo FIXME: Side link to previous + # ## @todo FIXME: Side link to previous $n = 0; if ( $res->numRows() > 0 ) {