Project

General

Profile

Bug #28502 ยป 0001-implement-core-feature-28502-t3lib_extMgm-addModule-.patch

Christian Weiske, 2011-07-27 13:29

View differences:

class.t3lib_extmgm.php
// Re-inserting the submodule list:
$TBE_MODULES[$main] = implode(',', $mods);
} else { // Create new main modules with only one submodule, $sub (or none if $sub is blank)
$TBE_MODULES[$main] = $sub;
list($place, $modRef) = t3lib_div::trimExplode(':', $position, 1);
switch(strtolower($place)) {
case 'after':
case 'before':
$keys = array_keys($TBE_MODULES);
$pos = array_search($modRef, $keys);
if ($pos === false) {
$pos = count($TBE_MODULES);
} else if (strtolower($place) == 'after') {
$pos += 1;
}
$TBE_MODULES = array_slice($TBE_MODULES, 0, $pos)
+ array($main => $sub)
+ array_slice($TBE_MODULES, $pos);
break;
case 'top':
$TBE_MODULES = array($main => $sub) + $TBE_MODULES;
break;
case 'bottom':
default:
$TBE_MODULES[$main] = $sub;
break;
}
}
// Adding path:
......
// Caching of extensions is disabled when install tool is used:
if (!$usePlainValue && defined('TYPO3_enterInstallScript') && TYPO3_enterInstallScript) {
$extensionCacheBehaviour = 0;
}
}
return $extensionCacheBehaviour;
}
    (1-1/1)