正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -181,11 +181,12 @@ class TranslateLogic extends BaseLogic | @@ -181,11 +181,12 @@ class TranslateLogic extends BaseLogic | ||
| 181 | if(FALSE !== strpos($country_class, 'country-flag')) { | 181 | if(FALSE !== strpos($country_class, 'country-flag')) { |
| 182 | continue; | 182 | continue; |
| 183 | } | 183 | } |
| 184 | + if(!in_array(htmlspecialchars_decode(html_entity_decode($string)),$need_tran)){ | ||
| 184 | $need_tran[] = htmlspecialchars_decode(html_entity_decode($string)); | 185 | $need_tran[] = htmlspecialchars_decode(html_entity_decode($string)); |
| 185 | } | 186 | } |
| 187 | + } | ||
| 186 | $need_tran[] = $description ? $description->attr['content'] : ''; | 188 | $need_tran[] = $description ? $description->attr['content'] : ''; |
| 187 | $need_tran[] = $keywords ? $keywords->attr['content'] : ''; | 189 | $need_tran[] = $keywords ? $keywords->attr['content'] : ''; |
| 188 | - $need_tran = array_values(array_unique($need_tran)); | ||
| 189 | return $need_tran; | 190 | return $need_tran; |
| 190 | } | 191 | } |
| 191 | 192 |
-
请 注册 或 登录 后发表评论