From 2b368515ecd70aef6e145efcf1727daa875e890b Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 23 May 2015 15:04:21 +0200 Subject: [PATCH] Format number for message 'title-invalid-too-long' Follow-Up: I4da8ecb457a77473e32d745ba48ab8505b35e45f Change-Id: I30ebf2a21bb09d992140baa2bd8707a674da6d51 --- includes/title/MediaWikiTitleCodec.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/title/MediaWikiTitleCodec.php b/includes/title/MediaWikiTitleCodec.php index 98cec59633..01575ac0b0 100644 --- a/includes/title/MediaWikiTitleCodec.php +++ b/includes/title/MediaWikiTitleCodec.php @@ -358,7 +358,8 @@ class MediaWikiTitleCodec implements TitleFormatter, TitleParser { # to subpage syntax for long titles, e.g. [[Special:Block/Long name]] $maxLength = ( $parts['namespace'] != NS_SPECIAL ) ? 255 : 512; if ( strlen( $dbkey ) > $maxLength ) { - throw new MalformedTitleException( 'title-invalid-too-long', $text, array( $maxLength ) ); + throw new MalformedTitleException( 'title-invalid-too-long', $text, + array( Message::numParam( $maxLength ) ) ); } # Normally, all wiki links are forced to have an initial capital letter so [[foo]] -- 2.20.1