mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-27 21:56:50 +01:00
Add RuntimeException if xml, pdo or zip PHP extension is missing
For a better User Experience ;)
This commit is contained in:
@@ -131,6 +131,10 @@ if($cache->enabled() && $cache->fetch('vocations', $tmp)) {
|
||||
$config['vocations'] = unserialize($tmp);
|
||||
}
|
||||
else {
|
||||
if(!class_exists('DOMDocument')) {
|
||||
throw new RuntimeException('Please install PHP xml extension. MyAAC will not work without it.');
|
||||
}
|
||||
|
||||
$vocations = new DOMDocument();
|
||||
$file = $config['data_path'] . 'XML/vocations.xml';
|
||||
if(!@file_exists($file))
|
||||
|
||||
Reference in New Issue
Block a user