From: umherirrender Date: Sat, 23 May 2015 13:04:21 +0000 (+0200) Subject: Format number for message 'title-invalid-too-long' X-Git-Tag: 1.31.0-rc.0~11325^2 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=2b368515ecd70aef6e145efcf1727daa875e890b;p=lhc%2Fweb%2Fwiklou.git Format number for message 'title-invalid-too-long' Follow-Up: I4da8ecb457a77473e32d745ba48ab8505b35e45f Change-Id: I30ebf2a21bb09d992140baa2bd8707a674da6d51 --- 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]]