$this->setHeaders();
$this->outputHeader();
- $this->getOutput()->addModules( [ 'mediawiki.special.edittags',
- 'mediawiki.special' ] );
+ $output->addModules( [ 'mediawiki.special.edittags' ] );
+ $output->addModuleStyles( [
+ 'mediawiki.interface.helpers.styles',
+ 'mediawiki.special'
+ ] );
$this->submitClicked = $request->wasPosted() && $request->getBool( 'wpSubmit' );
* the user to modify the tags applied to those items.
*/
protected function showForm() {
- $userAllowed = true;
-
$out = $this->getOutput();
// Messages: tags-edit-revision-selected, tags-edit-logentry-selected
$out->wrapWikiMsg( "<strong>$1</strong>", [
$numRevisions = 0;
// Live revisions...
$list = $this->getList();
- // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall
for ( $list->reset(); $list->current(); $list->next() ) {
$item = $list->current();
$numRevisions++;
// Otherwise, use a multi-select field for adding tags, and a list of
// checkboxes for removing them
- // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall
for ( $list->reset(); $list->current(); $list->next() ) {
$currentTags = $list->current()->getTags();
if ( $currentTags ) {
/**
* UI entry point for form submission.
- * @throws PermissionsError
* @return bool
*/
protected function submit() {