1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

Disable SEFURL similarity for Japanese and Korean. (more to come..)

This commit is contained in:
Cameron
2017-01-16 19:05:27 -08:00
parent 2cca2373ed
commit 500128d613

View File

@@ -590,6 +590,12 @@ class news_admin_ui extends e_admin_ui
*/
private function checkSEFSimilarity($new_data)
{
if(e_LANGUAGE === "Japanese" || e_LANGUAGE === "Korean")
{
return null;
}
$expectedSEF = eHelper::title2sef($new_data['news_title']);
similar_text($expectedSEF,$new_data['news_sef'],$percSimilar);