Quellcode durchsuchen

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 vor 8 Monaten
Ursprung
Commit
232a41ad5a
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  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();