正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -55,7 +55,8 @@ class RouteMap extends Base | @@ -55,7 +55,8 @@ class RouteMap extends Base | ||
| 55 | public static function generateRoute($title, $source, $source_id, $project_id){ | 55 | public static function generateRoute($title, $source, $source_id, $project_id){ |
| 56 | if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $title)){ | 56 | if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $title)){ |
| 57 | $title = Translate::tran($title, 'en'); | 57 | $title = Translate::tran($title, 'en'); |
| 58 | - }elseif (preg_match('/[а-яА-Я]/u', $title)) { | 58 | + } |
| 59 | + if (preg_match('/[а-яА-Я]/u', $title)) { | ||
| 59 | $title = Translate::tran($title, 'en'); | 60 | $title = Translate::tran($title, 'en'); |
| 60 | } | 61 | } |
| 61 | $i=1; | 62 | $i=1; |
-
请 注册 或 登录 后发表评论