[-] Class: Tools / link_rewrite(displayParameterAsDeprecated)

This commit is contained in:
PrestaEdit
2013-05-17 00:52:39 +02:00
parent 2bfad8017e
commit 57bb00a6a8
+3 -1
View File
@@ -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);
}