mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 17:50:12 +02:00
Disable SEFURL similarity for Japanese and Korean. (more to come..)
This commit is contained in:
@@ -590,6 +590,12 @@ class news_admin_ui extends e_admin_ui
|
|||||||
*/
|
*/
|
||||||
private function checkSEFSimilarity($new_data)
|
private function checkSEFSimilarity($new_data)
|
||||||
{
|
{
|
||||||
|
if(e_LANGUAGE === "Japanese" || e_LANGUAGE === "Korean")
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$expectedSEF = eHelper::title2sef($new_data['news_title']);
|
$expectedSEF = eHelper::title2sef($new_data['news_title']);
|
||||||
similar_text($expectedSEF,$new_data['news_sef'],$percSimilar);
|
similar_text($expectedSEF,$new_data['news_sef'],$percSimilar);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user