Commit 6782e22161dfd2bbafb2a6ea3d6d740f6841ff8c

Authored by Kevin Fourie
1 parent 8aa13038

KTS-3312

"config.ini file is possibly corrupted after upgrade"
Fixed. Removed active code but left upgade in so as not to mess with the upgrades table.

Committed By: Kevin Fourie
Reviewed By: Jonathan Byrne

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8392 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/upgrades/UpgradeFunctions.inc.php
... ... @@ -1025,7 +1025,13 @@ class UpgradeFunctions {
1025 1025 // {{{ updateConfigFile35
1026 1026 function updateConfigFile35()
1027 1027 {
1028   - $config = KTConfig::getSingleton();
  1028 + // The following is no longer needed due to defaults now being in place.
  1029 + // It also was corrupting the file "sometimes".
  1030 + // We leave the function in but do nothing so we don't mess with the upgrades table.
  1031 +
  1032 + return;
  1033 +
  1034 +/* $config = KTConfig::getSingleton();
1029 1035 $configPath = KTConfig::getConfigFilename();
1030 1036 $configPath = str_replace(array("\n","\r"), array('',''), $configPath);
1031 1037  
... ... @@ -1148,8 +1154,9 @@ class UpgradeFunctions {
1148 1154  
1149 1155 $ini->write();
1150 1156 }
  1157 +*/
1151 1158 }
1152   - // }}}
  1159 + // }}}
1153 1160  
1154 1161 // {{{ registerIndexingTasks
1155 1162 /**
... ... @@ -1185,7 +1192,7 @@ class UpgradeFunctions {
1185 1192 $oScheduler->setFirstRunTime(date('Y-m-d 00:00'));
1186 1193 $oScheduler->registerTask();
1187 1194 }
1188   - // }}}
  1195 + // }}}
1189 1196 }
1190 1197  
1191 1198 ?>
... ...