From 53a89fc564418610ee24d06b73ceb5e2b516f27c Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 14 Dec 2006 20:47:19 +0000 Subject: [PATCH] * someone forgot to declare a method static * compatibility issue in zhconvert --- includes/Xml.php | 2 +- languages/classes/LanguageZh.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/Xml.php b/includes/Xml.php index 25c23ed3b2..f2dd0e27a2 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -335,7 +335,7 @@ class Xml { * @param $in String: text that might contain HTML tags. * @return string Escaped string */ - function escapeTagsOnly( $in ) { + public static function escapeTagsOnly( $in ) { return str_replace( array( '"', '>', '<' ), array( '"', '>', '<' ), diff --git a/languages/classes/LanguageZh.php b/languages/classes/LanguageZh.php index 4f8a285a52..d4fbaf303f 100644 --- a/languages/classes/LanguageZh.php +++ b/languages/classes/LanguageZh.php @@ -24,9 +24,10 @@ class ZhConverter extends LanguageConverter { } /* there shouldn't be any latin text in Chinese conversion, so no need - to mark anything + to mark anything. + $noParse is there for compatibility with LanguageConvert::markNoConversion */ - function markNoConversion($text) { + function markNoConversion($text, $noParse = false) { return $text; } -- 2.20.1