From 4253754afd39c1b431310bca155ad0e07396459f Mon Sep 17 00:00:00 2001 From: PrestaEdit Date: Fri, 17 May 2013 00:52:39 +0200 Subject: [PATCH 1/2] [-] Class: Tools / link_rewrite(displayParameterAsDeprecated) --- classes/Tools.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index 7fc55ca80..7a03d3969 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -958,11 +958,13 @@ class ToolsCore * Return the friendly url from the provided string * * @param string $str - * @param bool $utf8_decode => needs to be marked as deprecated + * @param bool $utf8_decode (deprecated) * @return string */ public static function link_rewrite($str, $utf8_decode = false) { + if ($utf8_decode !== null) + Tools::displayParameterAsDeprecated('utf8_decode'); return Tools::str2url($str); } From 62f350334c4439752ef5127ad411cf4823279263 Mon Sep 17 00:00:00 2001 From: PrestaEdit Date: Mon, 20 May 2013 14:56:12 +0200 Subject: [PATCH 2/2] // Set param as null --- classes/Tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index 7a03d3969..4802ad24b 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -961,7 +961,7 @@ class ToolsCore * @param bool $utf8_decode (deprecated) * @return string */ - public static function link_rewrite($str, $utf8_decode = false) + public static function link_rewrite($str, $utf8_decode = null) { if ($utf8_decode !== null) Tools::displayParameterAsDeprecated('utf8_decode');