X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=includes%2FEditPage.php;h=300c5f314771a671bf33a2ec8f6f745b1f30062d;hb=d5ed0163f25d0bb42c33b612021154daae9396af;hp=45995646da592ebfe4253701df816d83f4db1cf1;hpb=93350da7f1ab397b87c3ac3073ddfc1c857b272e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index 45995646da..300c5f3147 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3250,15 +3250,13 @@ ERROR; * @return array */ private function getSummaryInputAttributes( array $inputAttrs = null ) { - $conf = $this->context->getConfig(); - $oldCommentSchema = $conf->get( 'CommentTableSchemaMigrationStage' ) === MIGRATION_OLD; // 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. return ( is_array( $inputAttrs ) ? $inputAttrs : [] ) + [ 'id' => 'wpSummary', 'name' => 'wpSummary', - 'maxlength' => $oldCommentSchema ? 200 : CommentStore::COMMENT_CHARACTER_LIMIT, + 'maxlength' => CommentStore::COMMENT_CHARACTER_LIMIT, 'tabindex' => 1, 'size' => 60, 'spellcheck' => 'true',