Selaa lähdekoodia

Fix DB Trailing slash issue

causefx 9 vuotta sitten
vanhempi
commit
32380676db
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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']);