change the switch phrases to switch languages

This commit is contained in:
markjcrane
2022-01-30 13:08:49 -07:00
parent b88c46bf47
commit 8372fa61f8
3 changed files with 128 additions and 118 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ if ($domains_processed == 1) {
//create phrases folder and add include line in xml for each language found
/*
if (strlen($_SESSION['switch']['phrases']['dir']) > 0) {
if (is_readable($_SESSION['switch']['phrases']['dir'])) {
$conf_lang_folders = glob($_SESSION['switch']['phrases']['dir']."/*");
if (strlen($_SESSION['switch']['languages']['dir']) > 0) {
if (is_readable($_SESSION['switch']['languages']['dir'])) {
$conf_lang_folders = glob($_SESSION['switch']['languages']['dir']."/*");
foreach ($conf_lang_folders as $conf_lang_folder) {
//create phrases folder, if necessary
if (!file_exists($conf_lang_folder."/phrases/")) {