@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | * @param string $restriction User right required, e.g. "block" or "delete" |
40 | 40 | * @param bool $listed Whether the page is listed in Special:Specialpages |
41 | 41 | */ |
42 | - public function __construct( $name = '', $restriction = '', $listed = true ) { |
|
43 | - parent::__construct( 'BatchUpload', 'upload', $listed ); |
|
42 | + public function __construct($name = '', $restriction = '', $listed = true) { |
|
43 | + parent::__construct('BatchUpload', 'upload', $listed); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * @param null|string $par |
59 | 59 | * @throws \MWException |
60 | 60 | */ |
61 | - public function execute( $par ) { |
|
61 | + public function execute($par) { |
|
62 | 62 | |
63 | 63 | $this->setHeaders(); |
64 | 64 | $this->checkPermissions(); |
@@ -67,14 +67,14 @@ discard block |
||
67 | 67 | |
68 | 68 | $html = '<span id="fileupload-dropzone" class="fileinput-button"> |
69 | 69 | <i class="glyphicon glyphicon-plus"></i> |
70 | - <span>' . \Message::newFromKey( 'simplebatchupload-buttonlabel' )->escaped() . '</span> |
|
70 | + <span>' . \Message::newFromKey('simplebatchupload-buttonlabel')->escaped() . '</span> |
|
71 | 71 | <!-- The file input field used as target for the file upload widget --> |
72 | - <input id="fileupload" type="file" name="file" data-url="' . wfScript( 'api' ) . '" data-token="' . $this->getUser()->getEditToken() . '" multiple> |
|
72 | + <input id="fileupload" type="file" name="file" data-url="' . wfScript('api') . '" data-token="' . $this->getUser()->getEditToken() . '" multiple> |
|
73 | 73 | </span><ul id="fileupload-results"></ul>'; |
74 | 74 | |
75 | - $output->addHTML( $html ); |
|
76 | - $output->addModules( 'ext.SimpleBatchUpload' ); |
|
77 | - $output->addModuleStyles( [ 'ext.SimpleBatchUpload', 'ext.SimpleBatchUpload.jquery-file-upload' ] ); |
|
75 | + $output->addHTML($html); |
|
76 | + $output->addModules('ext.SimpleBatchUpload'); |
|
77 | + $output->addModuleStyles([ 'ext.SimpleBatchUpload', 'ext.SimpleBatchUpload.jquery-file-upload' ]); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | } |