r102518 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102517‎ | r102518 | r102519 >
Date:14:54, 9 November 2011
Author:reedy
Status:ok
Tags:
Comment:
Bug 32314 - Undefined variable: t in MultiUpload.body.php on line 263
Modified paths:
  • /trunk/extensions/MultiUpload/MultiUpload.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MultiUpload/MultiUpload.body.php
@@ -259,10 +259,12 @@
260260 protected function showUploadError( $message ) {
261261 $err ='<ul><li>';
262262 $file = $this->mLocalFile;
263 - if ($file)
 263+ if ( $file ) {
264264 $t = $this->mLocalFile->getTitle();
265 - if ($t)
266 - $err .= $t->getFullText() . ":";
 265+ if ( $t ) {
 266+ $err .= $t->getFullText() . ":";
 267+ }
 268+ }
267269 $err .= $message . "</li></ul>\n";
268270 $this->mErrors[] = $err;
269271 }

Status & tagging log