Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/212908
Change subject: Format number for message 'title-invalid-too-long'
......................................................................
Format number for message 'title-invalid-too-long'
Follow-Up: I4da8ecb457a77473e32d745ba48ab8505b35e45f
Change-Id: I30ebf2a21bb09d992140baa2bd8707a674da6d51
---
M includes/title/MediaWikiTitleCodec.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/08/212908/1
diff --git a/includes/title/MediaWikiTitleCodec.php
b/includes/title/MediaWikiTitleCodec.php
index 98cec59..01575ac 100644
--- a/includes/title/MediaWikiTitleCodec.php
+++ b/includes/title/MediaWikiTitleCodec.php
@@ -358,7 +358,8 @@
# 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]]
--
To view, visit https://gerrit.wikimedia.org/r/212908
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I30ebf2a21bb09d992140baa2bd8707a674da6d51
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits