Change-Id: I5d97deb6f36b5db3371f784c16159d8ee53ba8ee
* @param string $par (optional) user name of the user for which to show the contributions
*/
function execute( $par ) {
* @param string $par (optional) user name of the user for which to show the contributions
*/
function execute( $par ) {
- global $wgQueryPageDefaultLimit;
-
$this->setHeaders();
$this->outputHeader();
$this->setHeaders();
$this->outputHeader();
- $options['limit'] = $request->getInt( 'limit', $wgQueryPageDefaultLimit );
+ $options['limit'] = $request->getInt( 'limit', $this->getConfig()->get( 'QueryPageDefaultLimit' ) );
$options['target'] = $target;
$userObj = User::newFromName( $target, false );
$options['target'] = $target;
$userObj = User::newFromName( $target, false );
* @return string
*/
function getForm( $options ) {
* @return string
*/
function getForm( $options ) {
$options['title'] = $this->getPageTitle()->getPrefixedText();
if ( !isset( $options['target'] ) ) {
$options['target'] = '';
$options['title'] = $this->getPageTitle()->getPrefixedText();
if ( !isset( $options['target'] ) ) {
$options['target'] = '';
$options['target'] = '';
}
$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' ) ) ) {
foreach ( $options as $name => $value ) {
if ( in_array( $name, array( 'namespace', 'target', 'contribs' ) ) ) {