do not load extension if it is disabled

This commit is contained in:
Uwe Steinmann 2013-05-03 11:32:25 +02:00
parent 64eebb607d
commit 9f0fbbf2db

View File

@ -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);
@ -31,3 +32,4 @@ foreach($EXT_CONF as $extname=>$extconf) {
$obj->init();
}
}
}