Replace deprecated Title::escapeCanonicalURL call
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 27 Jun 2014 15:12:37 +0000 (17:12 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 27 Jun 2014 15:12:37 +0000 (17:12 +0200)
Change-Id: Icd3e2304d6188babe2d887aa32fc0c398352b7b6

includes/parser/CoreParserFunctions.php

index 3425b6b..cde7a2d 100644 (file)
@@ -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 ) {