Merge "Format number for message 'title-invalid-too-long'"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 23 May 2015 14:22:04 +0000 (14:22 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 23 May 2015 14:22:04 +0000 (14:22 +0000)
includes/title/MediaWikiTitleCodec.php

index 98cec59..01575ac 100644 (file)
@@ -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]]