mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 21:16:07 +00:00
do not load extension if it is disabled
This commit is contained in:
parent
64eebb607d
commit
9f0fbbf2db
|
@ -23,6 +23,7 @@ if(file_exists($extconffile)) {
|
|||
}
|
||||
|
||||
foreach($EXT_CONF as $extname=>$extconf) {
|
||||
if(!isset($extconf['disable']) || $extconf['disable'] == false) {
|
||||
$classfile = $settings->_rootDir."/ext/".$extname."/".$extconf['class']['file'];
|
||||
if(file_exists($classfile)) {
|
||||
include($classfile);
|
||||
|
@ -30,4 +31,5 @@ foreach($EXT_CONF as $extname=>$extconf) {
|
|||
if(method_exists($obj, 'init'))
|
||||
$obj->init();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user