- $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') .
$this->script = 'mod.php?M=tools_em';
$this->privacyNotice = $GLOBALS['LANG']->getLL('privacy_notice');
$securityMessage = $GLOBALS['LANG']->getLL('security_warning_extensions') .
+ /**
+ * 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)
*
/**
* Reads locallang file into array (for possible include in header)
*
unset($reg);
if (preg_match('/^\$BACK_PATH[[:space:]]*=[[:space:]]*["\']([[:alnum:]_\/\.]+)["\'][[:space:]]*;/', $line, $reg)) {
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]);