X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRevisiondelete.php;h=f0bac45ba34860776bcac6415c5e7db9b21e72df;hp=50f3710143167111e445cb31e75c038e0053c874;hb=a38af7ba26579bb3004f673e44d39710887763aa;hpb=2a6469dbd1aaa7656bb7b18031da38d952af268f diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 50f3710143..f0bac45ba3 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -388,7 +388,6 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { $numRevisions = 0; // Live revisions... $list = $this->getList(); - // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall for ( $list->reset(); $list->current(); $list->next() ) { $item = $list->current(); @@ -419,10 +418,8 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { // Show form if the user can submit if ( $this->mIsAllowed ) { $out->addModules( [ 'mediawiki.special.revisionDelete' ] ); - $out->addModuleStyles( 'mediawiki.special' ); - - $conf = $this->getConfig(); - $oldCommentSchema = $conf->get( 'CommentTableSchemaMigrationStage' ) === MIGRATION_OLD; + $out->addModuleStyles( [ 'mediawiki.special', + 'mediawiki.interface.helpers.styles' ] ); $form = Xml::openElement( 'form', [ 'method' => 'post', 'action' => $this->getPageTitle()->getLocalURL( [ 'action' => 'submit' ] ), @@ -450,9 +447,9 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { 'id' => 'wpReason', // HTML maxlength uses "UTF-16 code units", which means that characters outside BMP // (e.g. emojis) count for two each. This limit is overridden in JS to instead count - // Unicode codepoints (or 255 UTF-8 bytes for old schema). + // Unicode codepoints. // "- 155" is to leave room for the 'wpRevDeleteReasonList' value. - 'maxlength' => $oldCommentSchema ? 100 : CommentStore::COMMENT_CHARACTER_LIMIT - 155, + 'maxlength' => CommentStore::COMMENT_CHARACTER_LIMIT - 155, ] ) . '' . "\n" .