本帖最后由 下砂 于 2011-5-9 15:44 编辑
修改文件:source/function/function_core.php 2506 行附近 修改之前请备份好原文件~!
查找:
- function strreplace_strip_split($searchs, $replaces, $str) {
- $searchspace = array('((\s*\-\s*)+)', '((\s*\,\s*)+)', '((\s*\|\s*)+)', '((\s*\t\s*)+)', '((\s*_\s*)+)');
- $replacespace = array('-', ',', '|', ' ', '_');
- return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces, $str)), ' ,-|_');
- }
复制代码 替换为:
- function strreplace_strip_split($searchs, $replaces, $str) {
- $searchspace = array('(((\s)*\-(\s)*)+)', '(((\s)*\,(\s)*)+)', '(((\s)*\|(\s)*)+)', '(((\s)*\t(\s)*)+)', '(((\s)*_(\s)*)+)');
- $replacespace = array('$3-$3', '$3,$3', '$3|$3', '$3 $3', '$3_$3');
- return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces, $str)), ' ,-|_');
- }
复制代码 后台更新缓存~!
|