修改文件:source\class\helper\helper_seo.php
49 行附近 修改之前请备份好原文件~!
查找:
- <OL>
- <LI>public static function strreplace_strip_split($searchs, $replaces, $str) {
- <LI>$searchspace = array('((\s*\-\s*)+)', '((\s*\,\s*)+)', '((\s*\|\s*)+)', '((\s*\t\s*)+)', '((\s*_\s*)+)');
- <LI>$replacespace = array('-', ',', '|', ' ', '_');
- <LI>return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces, $str)), ' ,-|_');
- <LI>}</LI></OL>
复制代码 替换为:
- <OL>
- <LI>public static function strreplace_strip_split($searchs, $replaces, $str) {
- <LI>$searchspace = array('(((\s)*\-(\s)*)+)', '(((\s)*\,(\s)*)+)', '(((\s)*\|(\s)*)+)', '(((\s)*\t(\s)*)+)', '(((\s)*_(\s)*)+)');
- <LI>$replacespace = array('$3-$3', '$3,$3', '$3|$3', '$3 $3', '$3_$3');
- <LI>return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces, $str)), ' ,-|_');
- <LI>}</LI></OL>
复制代码 后台更新缓存~!
|