Skip to content

Commit

Permalink
Fixed issue: DB is not properly updating in ComfortUpdate due to miss…
Browse files Browse the repository at this point in the history
…ing /install dir

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8159 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Dec 11, 2009
1 parent 626273b commit 3c5882e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion common.php
Expand Up @@ -241,7 +241,14 @@
$usrow = getGlobalSetting('DBVersion');
if (intval($usrow)<$dbversionnumber)
{
die ("<br />The LimeSurvey database is not up to date. <br />Please run the <a href='$homeurl/install/index.php'>installation script</a> 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 "<br /><a href='$homeurl'>".$clang->gT("Back to main menu")."</a>";
die();
}

if (is_dir($homedir."/install") && $debug<2)
Expand Down

0 comments on commit 3c5882e

Please sign in to comment.