Parcourir la source

removed old config file after migration

CauseFX il y a 4 ans
Parent
commit
4c944e63eb
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      api/classes/organizr.class.php

+ 1 - 0
api/classes/organizr.class.php

@@ -177,6 +177,7 @@ class Organizr
 			$this->makeDir(dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR);
 			if ($this->rcopy($oldUserConfigPath, $userConfigPath)) {
 				$this->userConfigPath = $userConfigPath;
+				@unlink($oldUserConfigPath);
 			} else {
 				$this->userConfigPath = $oldUserConfigPath;
 			}