X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2Fforms%2FUploadForm.php;h=e561fe588298b2b00c5d9e5f8f3a33c35cf359f7;hb=bf61efd87;hp=eacdace18a85f1980a5350db850cf81b23644ae4;hpb=55c51f36a4869614d870dac5d870638ec58a95ff;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/forms/UploadForm.php b/includes/specials/forms/UploadForm.php index eacdace18a..e561fe5882 100644 --- a/includes/specials/forms/UploadForm.php +++ b/includes/specials/forms/UploadForm.php @@ -406,14 +406,11 @@ class UploadForm extends HTMLForm { protected function addUploadJS() { $config = $this->getConfig(); - $useAjaxDestCheck = $config->get( 'UseAjax' ) && $config->get( 'AjaxUploadDestCheck' ); - $useAjaxLicensePreview = $config->get( 'UseAjax' ) && - $config->get( 'AjaxLicensePreview' ) && $config->get( 'EnableAPI' ); $this->mMaxUploadSize['*'] = UploadBase::getMaxUploadSize(); $scriptVars = [ - 'wgAjaxUploadDestCheck' => $useAjaxDestCheck, - 'wgAjaxLicensePreview' => $useAjaxLicensePreview, + 'wgAjaxUploadDestCheck' => $config->get( 'AjaxUploadDestCheck' ), + 'wgAjaxLicensePreview' => $config->get( 'AjaxLicensePreview' ), 'wgUploadAutoFill' => !$this->mForReUpload && // If we received mDestFile from the request, don't autofill // the wpDestFile textbox