addClassmap( $config['classmap'] ); } // append textdomain /*if ( isset($config['textdomain']) && $config['textdomain'] ) { self::$textdomains[$config['textdomain']] = "modules/$moduleName/languages"; }*/ } // admin is enabled by default if ( $isAdmin && file_exists( $modulePath . '/admin.php' ) ) { include $modulePath . '/admin.php'; // do not care if this fails } // skip if disabled if ( isset( $disabledModules[$moduleName] ) ) { continue ; } self::$modules[$moduleName] = $modulePath; } // load modules foreach ( self::$modules as $name => $path ) { require_once $path . '/main.php'; } } }