De-globali[sz]e AllPages and Prefixindex
Change-Id: I2ea969b3bf2573448562fd98b9306997bcfcfea4
This commit is contained in:
parent
8b4c1706e9
commit
a3107aee5f
2 changed files with 2 additions and 5 deletions
|
|
@ -98,11 +98,10 @@ class SpecialAllPages extends IncludableSpecialPage {
|
|||
* @return string
|
||||
*/
|
||||
function namespaceForm( $namespace = NS_MAIN, $from = '', $to = '', $hideredirects = false ) {
|
||||
global $wgScript;
|
||||
$t = $this->getPageTitle();
|
||||
|
||||
$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', $t->getPrefixedText() );
|
||||
$out .= Xml::openElement( 'fieldset' );
|
||||
$out .= Xml::element( 'legend', null, $this->msg( 'allpages' )->text() );
|
||||
|
|
|
|||
|
|
@ -101,10 +101,8 @@ 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() );
|
||||
|
|
|
|||
Loading…
Reference in a new issue