at this stage in the updater, it's too late to inform about pdo

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-26 10:16:19 +01:00
parent 84ed13d791
commit 567f789dab

View File

@@ -584,16 +584,4 @@ 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") . "\";");
}
}
}