r77175 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77174‎ | r77175 | r77176 >
Date:19:23, 23 November 2010
Author:travis
Status:deferred
Tags:
Comment:
fix fatal error
Modified paths:
  • /trunk/extensions/MultiUpload/MultiUpload.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MultiUpload/MultiUpload.body.php
@@ -255,9 +255,14 @@
256256 * @param $message String
257257 */
258258 protected function showUploadError( $message ) {
259 - $this->mErrors[] = '<ul><li>' .
260 - $this->mLocalFile->getTitle()->getFullText() . ':' .
261 - $message . "</li></ul>\n";
 259+ $err ='<ul><li>';
 260+ $file = $this->mLocalFile;
 261+ if ($file)
 262+ $t = $this->mLocalFile->getTitle();
 263+ if ($t)
 264+ $err .= $t->getFullText() . ":";
 265+ $err .= $message . "</li></ul>\n";
 266+ $this->mErrors[] = $err;
262267 }
263268
264269 /**

Status & tagging log