mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
check return value of postInitDMS
This commit is contained in:
parent
dc868bd83b
commit
535de29e7d
|
@ -61,7 +61,11 @@ $dms->setMaxDirID($settings->_maxDirID);
|
|||
if(isset($GLOBALS['SEEDDMS_HOOKS']['initDMS'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['initDMS'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'postInitDMS')) {
|
||||
$hookObj->postInitDMS(array('dms'=>$dms, 'settings'=>$settings, 'logger'=>$logger));
|
||||
$ret = $hookObj->postInitDMS(array('dms'=>$dms, 'settings'=>$settings, 'logger'=>$logger));
|
||||
if($ret === false) {
|
||||
echo "Fatal error in postInitDMS Hook. No way to recover.";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user