*/
class SpecialUpload extends SpecialPage {
/**
- * Constructor : initialise object
* Get data POSTed through the form and assign them to the object
* @param WebRequest $request Data posted.
*/
* This controls js: mw.config.get( 'wgFileCanRotate' )
*
* @todo What about non-BitmapHandler handled files?
+ * @return bool
*/
public static function rotationEnabled() {
$bitmapHandler = new BitmapHandler();
$out->addJsConfigVars( $scriptVars );
$out->addModules( [
- 'mediawiki.action.edit', // For <charinsert> support
'mediawiki.special.upload', // Extras for thumbnail and license preview.
] );
}