Index: branches/CentralNotice-SpecialPage-Integration/SpecialNoticeTemplate.php |
— | — | @@ -202,7 +202,7 @@ |
203 | 203 | |
204 | 204 | if ( $templateName == '' ) { |
205 | 205 | $wgOut->addHtml( wfMsg( 'centralnotice-template-doesnt-exist' ) ); |
206 | | - $return; |
| 206 | + return; |
207 | 207 | } |
208 | 208 | |
209 | 209 | $templateId = $this->getTemplateId( $templateName ); |
— | — | @@ -212,7 +212,7 @@ |
213 | 213 | "template_id =" . $dbr->addQuotes( $templateId ) ); |
214 | 214 | if ( $dbr->numRows( $res ) > 0 ) { |
215 | 215 | $wgOut->addHtml( wfMsg( 'centralnotice-template-still-bound' ) ); |
216 | | - $return; |
| 216 | + return; |
217 | 217 | } |
218 | 218 | else { |
219 | 219 | $centralnotice_table = 'central_notice_templates'; |