From 3c5882eb3635f9e9925fb44cf190d2798c35cb27 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Fri, 11 Dec 2009 15:15:40 +0000 Subject: [PATCH] Fixed issue: DB is not properly updating in ComfortUpdate due to missing /install dir git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8159 b72ed6b6-b9f8-46b5-92b4-906544132732 --- common.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index 01485839cb1..ef5ea5e35ea 100644 --- a/common.php +++ b/common.php @@ -241,7 +241,14 @@ $usrow = getGlobalSetting('DBVersion'); if (intval($usrow)<$dbversionnumber) { - die ("
The LimeSurvey database is not up to date.
Please run the installation script to upgrade your database."); + $action=''; + require_once($rootdir.'/classes/core/language.php'); + $clang = new limesurvey_lang($defaultlang); + include_once($homedir.'/update/updater.php'); + $output=CheckForDBUpgrades(); + echo $output; + echo "
".$clang->gT("Back to main menu").""; + die(); } if (is_dir($homedir."/install") && $debug<2)