]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/files/file_store.cpp
Исправлена ошибка сохранения админа и тарифа
[stg.git] / projects / stargazer / plugins / store / files / file_store.cpp
index aea3aedc1ca211a2e07592f86e3f2edfeef430be..5a61eea4a093bf6cf06396c94b3650abab4c6279 100644 (file)
@@ -1298,7 +1298,7 @@ strprintf(&fileName, "%s/%s.adm", storeSettings.GetAdminsDir().c_str(), ac.login
 Touch(fileName + ".new");
 
     {
-    CONFIGFILE cf(fileName);
+    CONFIGFILE cf(fileName + ".new");
 
     int e = cf.Error();
 
@@ -1666,7 +1666,7 @@ string fileName = storeSettings.GetTariffsDir() + "/" + tariffName + ".tf";
 Touch(fileName + ".new");
 
     {
-    CONFIGFILE cf(fileName);
+    CONFIGFILE cf(fileName + ".new");
 
     int e = cf.Error();