[-] Class: Tools / link_rewrite(displayParameterAsDeprecated)
This commit is contained in:
+3
-1
@@ -958,11 +958,13 @@ class ToolsCore
|
|||||||
* Return the friendly url from the provided string
|
* Return the friendly url from the provided string
|
||||||
*
|
*
|
||||||
* @param string $str
|
* @param string $str
|
||||||
* @param bool $utf8_decode => needs to be marked as deprecated
|
* @param bool $utf8_decode (deprecated)
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function link_rewrite($str, $utf8_decode = false)
|
public static function link_rewrite($str, $utf8_decode = false)
|
||||||
{
|
{
|
||||||
|
if ($utf8_decode !== null)
|
||||||
|
Tools::displayParameterAsDeprecated('utf8_decode');
|
||||||
return Tools::str2url($str);
|
return Tools::str2url($str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user