r42786 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42785‎ | r42786 | r42787 >
Date:22:28, 29 October 2008
Author:tparscal
Status:old
Tags:
Comment:
Fixed small bug in return statements.
Modified paths:
  • /branches/CentralNotice-SpecialPage-Integration/SpecialNoticeTemplate.php (modified) (history)

Diff [purge]

Index: branches/CentralNotice-SpecialPage-Integration/SpecialNoticeTemplate.php
@@ -202,7 +202,7 @@
203203
204204 if ( $templateName == '' ) {
205205 $wgOut->addHtml( wfMsg( 'centralnotice-template-doesnt-exist' ) );
206 - $return;
 206+ return;
207207 }
208208
209209 $templateId = $this->getTemplateId( $templateName );
@@ -212,7 +212,7 @@
213213 "template_id =" . $dbr->addQuotes( $templateId ) );
214214 if ( $dbr->numRows( $res ) > 0 ) {
215215 $wgOut->addHtml( wfMsg( 'centralnotice-template-still-bound' ) );
216 - $return;
 216+ return;
217217 }
218218 else {
219219 $centralnotice_table = 'central_notice_templates';

Status & tagging log