Index: typo3/sysext/em/classes/index.php =================================================================== --- typo3/sysext/em/classes/index.php (revision 9507) +++ typo3/sysext/em/classes/index.php (revision ) @@ -275,12 +275,6 @@ ); - $this->typeBackPaths = array( - 'S' => '../../../', - 'G' => '../../../', - 'L' => '../../../../' . TYPO3_mainDir - ); - $this->script = 'mod.php?M=tools_em'; $this->privacyNotice = $GLOBALS['LANG']->getLL('privacy_notice'); $securityMessage = $GLOBALS['LANG']->getLL('security_warning_extensions') . Index: typo3/sysext/em/classes/tools/class.tx_em_tools.php =================================================================== --- typo3/sysext/em/classes/tools/class.tx_em_tools.php (revision 9507) +++ typo3/sysext/em/classes/tools/class.tx_em_tools.php (revision ) @@ -562,6 +562,19 @@ } /** + * Get backpath from type + * + * @param string $type S/G/L + */ + public function typeBackPath($type) { + if ($type === 'L') { + return '../../../../' . TYPO3_mainDir; + } else { + return '../../../'; + } + } + + /** * Reads locallang file into array (for possible include in header) * * @param $file @@ -913,7 +926,7 @@ unset($reg); if (preg_match('/^\$BACK_PATH[[:space:]]*=[[:space:]]*["\']([[:alnum:]_\/\.]+)["\'][[:space:]]*;/', $line, $reg)) { - $lines[$k] = str_replace($reg[0], '$BACK_PATH=\'' . self::typeRelPath($type) . '\';', $lines[$k]); + $lines[$k] = str_replace($reg[0], '$BACK_PATH=\'' . self::typeBackPath($type) . '\';', $lines[$k]); $flag_B = $k + 1; }