Index: branches/new-upload/phase3/includes/api/ApiUpload.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | public function execute() { |
43 | 43 | global $wgUser; |
44 | 44 | |
45 | | - $this->getMain()->requestWriteMode(); |
| 45 | + $this->getMain()->isWriteMode(); |
46 | 46 | $this->mParams = $this->extractRequestParams(); |
47 | 47 | $request = $this->getMain()->getRequest(); |
48 | 48 | |
Index: branches/new-upload/phase3/includes/Skin.php |
— | — | @@ -404,6 +404,12 @@ |
405 | 405 | 'wgSeparatorTransformTable' => $compactSeparatorTransTable, |
406 | 406 | 'wgDigitTransformTable' => $compactDigitTransTable, |
407 | 407 | ); |
| 408 | + //if on upload page output the extension list & js_upload |
| 409 | + if( SpecialPage::resolveAlias( $wgTitle->getDBkey() ) == "Upload" ){ |
| 410 | + global $wgFileExtensions, $wgAjaxUploadInterface; |
| 411 | + $vars['wgFileExtensions'] = $wgFileExtensions; |
| 412 | + $vars['wgAjaxUploadInterface'] = $wgAjaxUploadInterface; |
| 413 | + } |
408 | 414 | |
409 | 415 | if( $wgUseAjax && $wgEnableMWSuggest && !$wgUser->getOption( 'disablesuggest', false ) ){ |
410 | 416 | $vars['wgMWSuggestTemplate'] = SearchEngine::getMWSuggestTemplate(); |