浏览代码

Ensure the language translations can be found

Current release uses app/contacts. The latest master uses core/contacts. For now need to support both.
FusionPBX 8 月之前
父节点
当前提交
232a41ad5a
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      message_contact.php

+ 6 - 1
message_contact.php

@@ -39,7 +39,12 @@
 
 //add multi-lingual support
 	$language = new text;
-	$text = $language->get(null, '/app/contacts');
+	if (file_exists($_SERVER["PROJECT_ROOT"]."/core/contacts/app_config.php")) {
+		$text = $language->get(null, '/core/contacts');
+	}
+	else {
+		$text = $language->get(null, '/app/contacts');
+	}
 
 //connect to the database
 	$database = database::new();