Эх сурвалжийг харах

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 сар өмнө
parent
commit
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();