Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | } |
37 | 37 | |
38 | 38 | if( !strlen( $target ) ) { |
39 | | - $wgOut->addHTML( $this->getForm( '' ) ); |
| 39 | + $wgOut->addHTML( $this->getForm() ); |
40 | 40 | return; |
41 | 41 | } |
42 | 42 | |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | |
46 | 46 | $nt = Title::makeTitleSafe( NS_USER, $target ); |
47 | 47 | if( !$nt ) { |
48 | | - $wgOut->addHTML( $this->getForm( '' ) ); |
| 48 | + $wgOut->addHTML( $this->getForm() ); |
49 | 49 | return; |
50 | 50 | } |
51 | 51 | $id = User::idFromName( $nt->getText() ); |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | $this->opts['namespace'] = ''; |
66 | 66 | } |
67 | 67 | |
68 | | - $this->opts['tagfilter'] = $wgRequest->getVal( 'tagfilter' ); |
| 68 | + $this->opts['tagfilter'] = (string) $wgRequest->getVal( 'tagfilter' ); |
69 | 69 | |
70 | 70 | // Allows reverts to have the bot flag in recent changes. It is just here to |
71 | 71 | // be passed in the form at the top of the page |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | |
108 | 108 | wfRunHooks( 'SpecialContributionsBeforeMainOutput', $id ); |
109 | 109 | |
110 | | - $wgOut->addHTML( $this->getForm( $this->opts ) ); |
| 110 | + $wgOut->addHTML( $this->getForm() ); |
111 | 111 | |
112 | 112 | $pager = new ContribsPager( $target, $this->opts['namespace'], $this->opts['year'], $this->opts['month'] ); |
113 | 113 | if( !$pager->getNumRows() ) { |
— | — | @@ -237,6 +237,10 @@ |
238 | 238 | if( $this->opts['contribs'] == 'newbie' ) { |
239 | 239 | $this->opts['target'] = ''; |
240 | 240 | } |
| 241 | + |
| 242 | + if( !isset( $this->opts['tagfilter'] ) ) { |
| 243 | + $this->opts['tagfilter'] = ''; |
| 244 | + } |
241 | 245 | |
242 | 246 | $f = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ); |
243 | 247 | |