Format number for message 'title-invalid-too-long'
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 23 May 2015 13:04:21 +0000 (15:04 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 23 May 2015 13:05:38 +0000 (15:05 +0200)
Follow-Up: I4da8ecb457a77473e32d745ba48ab8505b35e45f
Change-Id: I30ebf2a21bb09d992140baa2bd8707a674da6d51

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]]