From 4634b572433980d9c78ff662f0af0b0c05c00f90 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 27 Jun 2014 17:12:37 +0200 Subject: [PATCH] Replace deprecated Title::escapeCanonicalURL call Change-Id: Icd3e2304d6188babe2d887aa32fc0c398352b7b6 --- includes/parser/CoreParserFunctions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 3425b6bb7c..cde7a2d83e 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -242,7 +242,12 @@ class CoreParserFunctions { } static function canonicalurle( $parser, $s = '', $arg = null ) { - return self::urlFunction( 'escapeCanonicalURL', $s, $arg ); + $temp = self::urlFunction( 'getCanonicalURL', $s, $arg ); + if ( !is_string( $temp ) ) { + return $temp; + } else { + return htmlspecialchars( $temp ); + } } static function urlFunction( $func, $s = '', $arg = null ) { -- 2.20.1