diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-05 22:44:53 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-01-05 22:44:53 +0100 |
commit | e837d3589ba5c5da5daa58f69bdc14447c90bc51 (patch) | |
tree | 9b2fd6ec4f4d753b2c68f3f21ec626e1bd5eabb0 /system/helpers/url_helper.php | |
parent | 627f1058c1d72b267ab8ab441219198d6f2c24c6 (diff) |
Drop some previously deprecated functionality
Diffstat (limited to 'system/helpers/url_helper.php')
-rw-r--r-- | system/helpers/url_helper.php | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php index 4c060a203..17601c40c 100644 --- a/system/helpers/url_helper.php +++ b/system/helpers/url_helper.php @@ -470,31 +470,20 @@ if ( ! function_exists('url_title')) * human-friendly URL string with a "separator" string * as the word separator. * - * @todo Remove old 'dash' and 'underscore' usage in 3.1+. * @param string $str Input string - * @param string $separator Word separator - * (usually '-' or '_') + * @param string $separator Word separator (usually '-' or '_') * @param bool $lowercase Whether to transform the output string to lowercase * @return string */ function url_title($str, $separator = '-', $lowercase = FALSE) { - if ($separator === 'dash') - { - $separator = '-'; - } - elseif ($separator === 'underscore') - { - $separator = '_'; - } - $q_separator = preg_quote($separator, '#'); $trans = array( '&.+?;' => '', '[^\w\d _-]' => '', '\s+' => $separator, - '('.$q_separator.')+' => $separator + '('.$q_separator.')+' => $separator, ); $str = strip_tags($str); |