r62639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62638‎ | r62639 | r62640 >
Date:05:43, 17 February 2010
Author:dale
Status:ok
Tags:
Comment:
* added missing initialize function to UploadFromFile ( avoids the initialized undefined error )
Modified paths:
  • /trunk/phase3/includes/upload/UploadFromFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/upload/UploadFromFile.php
@@ -20,7 +20,12 @@
2121 $request->getFileSize( 'wpUploadFile' )
2222 );
2323 }
24 -
 24+ /**
 25+ * Entry point for upload from file.
 26+ */
 27+ function initialize( $name, $tempPath, $fileSize ) {
 28+ return $this->initializePathInfo( $name, $tempPath, $fileSize );
 29+ }
2530 static function isValidRequest( $request ) {
2631 return (bool)$request->getFileTempName( 'wpUploadFile' );
2732 }

Status & tagging log