From: Bryan Tong Minh Date: Fri, 18 Sep 2009 20:43:12 +0000 (+0000) Subject: Set wpSourceType to file by default for backwards compatibility with user scripts. X-Git-Tag: 1.31.0-rc.0~39638 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=5d4bc337ef566c716bd307d66201b11ffb80c0c7;p=lhc%2Fweb%2Fwiklou.git Set wpSourceType to file by default for backwards compatibility with user scripts. --- diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 09d0a37961..dbbf1e1fad 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -73,7 +73,7 @@ abstract class UploadBase { * Create a form of UploadBase depending on wpSourceType and initializes it */ public static function createFromRequest( &$request, $type = null ) { - $type = $type ? $type : $request->getVal( 'wpSourceType' ); + $type = $type ? $type : $request->getVal( 'wpSourceType', 'File' ); if( !$type ) return null;