Format number for message 'title-invalid-too-long'
[lhc/web/wiklou.git] / 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]]