X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FMcrUndoAction.php;h=47bbdc0b5cfe9711316ccf2961fd9beff3c3fd74;hb=1404a1f6bf6065035e74c287951b1c2126f11e55;hp=b60820c0c37c6ef85cc332a8148dd7f8ab0510a7;hpb=65f12f7190442dcea96eb8d642ebbf8c39df1427;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/McrUndoAction.php b/includes/actions/McrUndoAction.php index b60820c0c3..47bbdc0b5c 100644 --- a/includes/actions/McrUndoAction.php +++ b/includes/actions/McrUndoAction.php @@ -358,8 +358,6 @@ class McrUndoAction extends FormAction { protected function getFormFields() { $request = $this->getRequest(); - $config = $this->context->getConfig(); - $oldCommentSchema = $config->get( 'CommentTableSchemaMigrationStage' ) === MIGRATION_OLD; $ret = [ 'diff' => [ 'type' => 'info', @@ -375,7 +373,7 @@ class McrUndoAction extends FormAction { 'name' => 'wpSummary', 'cssclass' => 'mw-summary', 'label-message' => 'summary', - 'maxlength' => $oldCommentSchema ? 200 : CommentStore::COMMENT_CHARACTER_LIMIT, + 'maxlength' => CommentStore::COMMENT_CHARACTER_LIMIT, 'value' => $request->getVal( 'wpSummary', '' ), 'size' => 60, 'spellcheck' => 'true',