Merge pull request #438 from PrestaEdit/patch-36

[-] Class: Tools / link_rewrite(displayParameterAsDeprecated)
This commit is contained in:
Vincent Augagneur
2013-05-20 06:23:20 -07:00
+4 -2
View File
@@ -963,11 +963,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)
public static function link_rewrite($str, $utf8_decode = null)
{
if ($utf8_decode !== null)
Tools::displayParameterAsDeprecated('utf8_decode');
return Tools::str2url($str);
}