Explorar o código

fix to use phrases_dir

changed phrases_dir to be dealt with inside app_defaults.php so it is retrieved once like the other paths
Matthew Vale %!s(int64=10) %!d(string=hai) anos
pai
achega
e99d3b66ee
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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");
 			}