[svn r10656] Added search for Dokeos 1.6 config file + comments

skala
Yannick Warnier 18 years ago
parent 2ae6ebc463
commit 82ac49808d
  1. 5
      main/install/install_functions.inc.php

@ -118,16 +118,19 @@ function get_config_param($param)
{
global $configFile, $updateFromConfigFile;
if(empty($updateFromConfigFile))
if(empty($updateFromConfigFile)) //if update from previous install was requested
{
//try to recover old config file from dokeos 1.6.x
if(file_exists(str_replace('../','',$_POST['updatePath']).'main/inc/claro_main.conf.php'))
{
$updateFromConfigFile='main/inc/claro_main.conf.php';
}
//try to recover old config file from dokeos 1.8.x
elseif(file_exists(str_replace('../','',$_POST['updatePath']).'main/inc/conf/configuration.php'))
{
$updateFromConfigFile='main/inc/conf/configuration.php';
}
//give up recovering
else
{
return null;

Loading…
Cancel
Save