mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
Some fixes
* more info displayed when cannot connect to database * added Cache:delete($key) function * added support for OTHire 0.0.3 * deleted unused ODBC and PostgreSQL files * fixed support for Gesior layouts
This commit is contained in:
@@ -65,12 +65,16 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
);
|
||||
}
|
||||
catch(PDOException $error) {
|
||||
if($cache->enabled()) {
|
||||
$cache->delete('config_lua');
|
||||
}
|
||||
die('ERROR: Cannot connect to MySQL database.<br/>' .
|
||||
'Possible reasons:' .
|
||||
'<ul>' .
|
||||
'<li>MySQL is not configured propertly in <i>config.lua</i>.</li>' .
|
||||
'<li>MySQL server is not running.</li>' .
|
||||
'</ul>');
|
||||
'</ul>' . $error);
|
||||
|
||||
}
|
||||
$db = POT::getInstance()->getDBHandle();
|
||||
?>
|
Reference in New Issue
Block a user