Browse Source

Merge pull request #1218 from mafoo/bugfix_languages.lua

changed phrases_dir to be dealt with inside app_defaults.php so it is retrieved once like the other paths
FusionPBX 10 years ago
parent
commit
746a0f1eb0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/databases/app_defaults.php

+ 3 - 0
core/databases/app_defaults.php

@@ -131,6 +131,9 @@ if ($domains_processed == 1) {
 			if (strlen($_SESSION['switch']['sounds']['dir']) > 0) {
 				$tmp .= correct_path("	sounds_dir = [[".$_SESSION['switch']['sounds']['dir']."]];\n");
 			}
+			if (strlen($_SESSION['switch']['phrases']['dir']) > 0) {
+				$tmp .= correct_path("	phrases_dir = [[".$_SESSION['switch']['phrases']['dir']."]];\n");
+			}
 			if (strlen($_SESSION['switch']['db']['dir']) > 0) {
 				$tmp .= correct_path("	database_dir = [[".$_SESSION['switch']['db']['dir']."]];\n");
 			}