causefx 9 лет назад
Родитель
Сommit
32380676db
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      functions.php

+ 3 - 0
functions.php

@@ -792,6 +792,9 @@ function upgradeCheck() {
 		$config = parse_ini_file('databaseLocation.ini.php', true);
 		
 		// Refactor
+        //DB Location now needs trailing slash (If not found - we add it!)
+        if(substr($config['databaseLocation'], -1) != "/") : $config['databaseLocation'] = $config['databaseLocation'] . "/"; endif;
+        //Set both db location and userhome to previous location
 		$config['database_Location'] = $config['databaseLocation'];
 		$config['user_home'] = $config['databaseLocation'];
 		unset($config['databaseLocation']);