From bd2bfb47be35b6c11dbc83dfccc7d7be1559c093 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 3 Aug 2014 14:45:53 -0700 Subject: [PATCH] DeletedContributionsPage: Use Config instead of globals Change-Id: I5d97deb6f36b5db3371f784c16159d8ee53ba8ee --- includes/specials/SpecialDeletedContributions.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index b69eb6347a..934b7a3c47 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -286,8 +286,6 @@ class DeletedContributionsPage extends SpecialPage { * @param string $par (optional) user name of the user for which to show the contributions */ function execute( $par ) { - global $wgQueryPageDefaultLimit; - $this->setHeaders(); $this->outputHeader(); @@ -317,7 +315,7 @@ class DeletedContributionsPage extends SpecialPage { return; } - $options['limit'] = $request->getInt( 'limit', $wgQueryPageDefaultLimit ); + $options['limit'] = $request->getInt( 'limit', $this->getConfig()->get( 'QueryPageDefaultLimit' ) ); $options['target'] = $target; $userObj = User::newFromName( $target, false ); @@ -507,8 +505,6 @@ class DeletedContributionsPage extends SpecialPage { * @return string */ function getForm( $options ) { - global $wgScript; - $options['title'] = $this->getPageTitle()->getPrefixedText(); if ( !isset( $options['target'] ) ) { $options['target'] = ''; @@ -528,7 +524,7 @@ class DeletedContributionsPage extends SpecialPage { $options['target'] = ''; } - $f = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ); + $f = Xml::openElement( 'form', array( 'method' => 'get', 'action' => wfScript() ) ); foreach ( $options as $name => $value ) { if ( in_array( $name, array( 'namespace', 'target', 'contribs' ) ) ) { -- 2.20.1