From c4372dd38a4d109b4f3881ea63b667e33adbe503 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 26 Apr 2012 18:23:31 +0200 Subject: Update to MediaWiki 1.18.3 --- includes/parser/CoreParserFunctions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'includes/parser') diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 080da602..5dffd978 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -141,7 +141,11 @@ class CoreParserFunctions { } static function nse( $parser, $part1 = '' ) { - return wfUrlencode( str_replace( ' ', '_', self::ns( $parser, $part1 ) ) ); + $ret = self::ns( $parser, $part1 ); + if ( is_string( $ret ) ) { + $ret = wfUrlencode( str_replace( ' ', '_', $ret ) ); + } + return $ret; } /** -- cgit v1.2.3-54-g00ecf