r107745 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107744‎ | r107745 | r107746 >
Date:21:41, 31 December 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
fix unintentional override
Modified paths:
  • /trunk/extensions/Contest/specials/SpecialContestSignup.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Contest/specials/SpecialContestSignup.php
@@ -178,7 +178,7 @@
179179 $form->setSubmitText( wfMsg( 'contest-signup-submit' ) );
180180
181181 if( $form->show() ) {
182 - $this->showSuccess( $contest );
 182+ $this->onSuccess( $contest );
183183 }
184184 else {
185185 $this->getOutput()->addModules( 'contest.special.signup' );
@@ -201,7 +201,7 @@
202202 *
203203 * @param Contest $contest
204204 */
205 - protected function showSuccess( Contest $contest ) {
 205+ protected function onSuccess( Contest $contest ) {
206206 $url = SpecialPage::getTitleFor( 'MyContests', $contest->getField( 'name' ) )->getLocalURL( 'new' );
207207 $this->getOutput()->redirect( $url );
208208 }

Status & tagging log