From 55e678c83a4d01d67fd67f8968cfb575080ffec4 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 5 Aug 2015 11:28:17 +0200 Subject: [PATCH] Copy conf files during migration. --- main/install/index.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/main/install/index.php b/main/install/index.php index 5079c3a4a9..3b7a4e5caa 100755 --- a/main/install/index.php +++ b/main/install/index.php @@ -686,6 +686,26 @@ if (@$_POST['step2']) { include 'update-files-1.9.0-1.10.0.inc.php'; // Only updates the configuration.inc.php with the new version include 'update-configuration.inc.php'; + + $configurationFiles = array( + 'mail.conf.php', + 'profile.conf.php', + 'course_info.conf.php', + 'add_course.conf.php', + 'events.conf.php', + 'auth.conf.php', + 'portfolio.conf.php' + ); + + foreach ($configurationFiles as $file) { + if (file_exists(api_get_path(SYS_CODE_PATH) . 'inc/conf/'.$file)) { + copy( + api_get_path(SYS_CODE_PATH).'inc/conf/'.$file, + api_get_path(CONFIGURATION_PATH).$file + ); + } + } + break; default: break;