Skip to content

Commit

Permalink
Dev Added existing MySQl database version to error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 28, 2017
1 parent 18e6b13 commit 87094bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/InstallerController.php
Expand Up @@ -1364,7 +1364,7 @@ private function dbTest($aDbConfig = array(), $aData = array())
if ($sDatabaseType=='mysql' && version_compare($testPdo->getAttribute(constant("PDO::ATTR_SERVER_VERSION")),$sMinimumMySQLVersion)==-1)
{
if (!empty($aData['model'])) {
$aData['model']->addError('dblocation', sprintf(gT('The database does not meet the minimum MySQL/MariaDB server version requirement for LimeSurvey (%s). Found version: %s'),$sMinimumMySQLVersion, $testPdo->getAttribute(constant("PDO::ATTR_SERVER_VERSION")));
$aData['model']->addError('dblocation', sprintf(gT('The database does not meet the minimum MySQL/MariaDB server version requirement for LimeSurvey (%s). Found version: %s'),$sMinimumMySQLVersion, $testPdo->getAttribute(constant("PDO::ATTR_SERVER_VERSION"))));
$this->render('/installer/dbconfig_view', $aData);
Yii::app()->end();
}
Expand Down

1 comment on commit 87094bc

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea :)

Please sign in to comment.