Project

General

Profile

Bug #23531 ยป 15692.diff

Administrator Admin, 2010-09-13 00:41

View differences:

t3lib/class.t3lib_extmgm.php (working copy)
*
* @param string $name is the name of the module, refer to conf.php of the module.
* @param string $path is the absolute path to the module directory inside of which "index.php" and "conf.php" is found.
* @param string $scriptName is filename of the module, default is index.php.
* @return void
*/
public static function addModulePath($name, $path) {
public static function addModulePath($name, $path, $scriptName = 'index.php') {
global $TBE_MODULES;
$TBE_MODULES['_PATHS'][$name] = $path;
$TBE_MODULES['scriptName'][$name] = $scriptName;
}
/**
typo3/mod.php (working copy)
$MCONF['_'] = 'mod.php?M=' . rawurlencode($temp_M);
require($temp_path . 'conf.php');
$BACK_PATH = '';
require($temp_path . 'index.php');
$scriptName = isset($TBE_MODULES['scriptName'][$temp_M]) ? $TBE_MODULES['scriptName'][$temp_M] : 'index.php';
require($temp_path . $scriptName);
$isDispatched = TRUE;
} else {
if (is_array($TBE_MODULES['_dispatcher'])) {
    (1-1/1)