From e39a847a2ba145eea167c23797796d4be162814c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sun, 1 Feb 2009 10:05:25 +0000 Subject: [PATCH] * Fix E_NOTICE for werdnum --- includes/specials/SpecialContributions.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 3ce55223f6..86723dcaf6 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -35,7 +35,7 @@ class SpecialContributions extends SpecialPage { } if( !strlen( $target ) ) { - $wgOut->addHTML( $this->getForm( '' ) ); + $wgOut->addHTML( $this->getForm() ); return; } @@ -44,7 +44,7 @@ class SpecialContributions extends SpecialPage { $nt = Title::makeTitleSafe( NS_USER, $target ); if( !$nt ) { - $wgOut->addHTML( $this->getForm( '' ) ); + $wgOut->addHTML( $this->getForm() ); return; } $id = User::idFromName( $nt->getText() ); @@ -64,7 +64,7 @@ class SpecialContributions extends SpecialPage { $this->opts['namespace'] = ''; } - $this->opts['tagfilter'] = $wgRequest->getVal( 'tagfilter' ); + $this->opts['tagfilter'] = (string) $wgRequest->getVal( 'tagfilter' ); // Allows reverts to have the bot flag in recent changes. It is just here to // be passed in the form at the top of the page @@ -106,7 +106,7 @@ class SpecialContributions extends SpecialPage { wfRunHooks( 'SpecialContributionsBeforeMainOutput', $id ); - $wgOut->addHTML( $this->getForm( $this->opts ) ); + $wgOut->addHTML( $this->getForm() ); $pager = new ContribsPager( $target, $this->opts['namespace'], $this->opts['year'], $this->opts['month'] ); if( !$pager->getNumRows() ) { @@ -237,6 +237,10 @@ class SpecialContributions extends SpecialPage { if( $this->opts['contribs'] == 'newbie' ) { $this->opts['target'] = ''; } + + if( !isset( $this->opts['tagfilter'] ) ) { + $this->opts['tagfilter'] = ''; + } $f = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ); -- 2.20.1