X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUpload.php;h=b98fad1997bc5a8fb3c6bb21e19b7e3d23975380;hb=e0b2787dae749ba3d4cb18bc9b3fe789db69046f;hp=def639d83b42e4b2949a52ec337ae20cd0a39f5d;hpb=37be8b0d8bdc1794aee7ac8e5f50c1c4e211c334;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index def639d83b..b98fad1997 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -33,7 +33,6 @@ use MediaWiki\MediaWikiServices; */ class SpecialUpload extends SpecialPage { /** - * Constructor : initialise object * Get data POSTed through the form and assign them to the object * @param WebRequest $request Data posted. */ @@ -678,7 +677,6 @@ class SpecialUpload extends SpecialPage { */ protected function processVerificationError( $details ) { switch ( $details['status'] ) { - /** Statuses that only require name changing **/ case UploadBase::MIN_LENGTH_PARTNAME: $this->showRecoverableUploadError( $this->msg( 'minlength1' )->escaped() ); @@ -841,6 +839,7 @@ class SpecialUpload extends SpecialPage { * This controls js: mw.config.get( 'wgFileCanRotate' ) * * @todo What about non-BitmapHandler handled files? + * @return bool */ public static function rotationEnabled() { $bitmapHandler = new BitmapHandler(); @@ -1258,7 +1257,6 @@ class UploadForm extends HTMLForm { $out->addJsConfigVars( $scriptVars ); $out->addModules( [ - 'mediawiki.action.edit', // For support 'mediawiki.special.upload', // Extras for thumbnail and license preview. ] ); }