update-note about php-pdo being used now

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-26 09:41:40 +01:00
parent 81c0771f3b
commit 84ed13d791
4 changed files with 20 additions and 2 deletions

View File

@@ -540,7 +540,7 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES
('panel', 'phpconfigs_hidestdsubdomain', '0'),
('panel', 'allow_theme_change_admin', '1'),
('panel', 'allow_theme_change_customer', '1'),
('panel', 'version', '0.9.31-dev2');
('panel', 'version', '0.9.31-dev3');
DROP TABLE IF EXISTS `panel_tasks`;

View File

@@ -2446,3 +2446,9 @@ if (isFroxlorVersion('0.9.31-dev1')) {
updateToVersion('0.9.31-dev2');
}
if (isFroxlorVersion('0.9.31-dev2')) {
showUpdateStep("Updating from 0.9.31-dev2 to 0.9.31-dev3", true);
lastStepStatus(0);
updateToVersion('0.9.31-dev3');
}

View File

@@ -584,4 +584,16 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version)
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
}
}
if (versionInUpdate($current_version, '0.9.31-dev3')) {
if (!extension_loaded('pdo')
|| in_array("mysql", PDO::getAvailableDrivers()) == false
) {
$has_preconfig = true;
$description = '<b>Froxlor now uses PHP PDO as database backend. Please be sure that you have the php-pdo extension with mysql-driver installed.</b><br /><br />';
$description .= 'Check your distributions manuals on how to install php-pdo.';
$question = '';
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
}
}
}