diff --git a/system/init.php b/system/init.php index 2a778862..cc42180c 100644 --- a/system/init.php +++ b/system/init.php @@ -142,10 +142,8 @@ else { if(!@file_exists($file)) $file = $config['data_path'] . 'vocations.xml'; - $vocations->load($file); - - if(!$vocations) - throw new RuntimeException('ERROR: Cannot load vocations.xml file.'); + if(!$vocations->load($file)) + throw new RuntimeException('ERROR: Cannot load vocations.xml - the file is malformed. Check the file with xml syntax validator.'); $config['vocations'] = array(); foreach($vocations->getElementsByTagName('vocation') as $vocation) {