Skip to content

Commit

Permalink
Dev: updated updatedbhelper to refelct the current Database
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Aug 11, 2017
1 parent 1687b03 commit 6a4d1d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/update/updatedb_helper.php
Expand Up @@ -406,10 +406,11 @@ function db_upgrade_all($iOldDBVersion, $bSilent=false) {

// Inform superadmin about update
$superadmins = User::model()->getSuperAdmins();
$currentDbVersion = $oDB->createCommand()->select('stg_value')->from('{{settings_global}}')->where("stg_name=:stg_name", array('stg_name'=>'DBVersion'))->queryRow();

Notification::broadcast(array(
'title' => gT('Database update'),
'message' => sprintf(gT('The database has been updated from version %s to version %s.'), $iOldDBVersion, '304')
'message' => sprintf(gT('The database has been updated from version %s to version %s.'), $iOldDBVersion, $currentDbVersion['stg_value'])
), $superadmins);

fixLanguageConsistencyAllSurveys();
Expand Down

0 comments on commit 6a4d1d4

Please sign in to comment.