Hallo,
ich hab die genannte Ext. installiert und wie im Manual beschrieben includiert:
require_once(t3lib_extMgm::extPath('rlmp_dateselectlib').'class.tx_rlmpdateselectlib.php');
tx_rlmpdateselectlib::includeLib();
und erhalte sofort folgenden Fehler:
Fatal error: Using $this when not in object context in ...\typo3conf\ext\rlmp_dateselectlib\class.tx_rlmpdateselectlib.php on line 282
Die Zeile 282 ist hier die Zeile 13:
function get_LL($key,$alt='',$hsc=FALSE) {
// Load translations
// This is done kind of manually here, because we use this class
// without making an instance. That's why I don't use pi_loadLL etc.
// because we don't know in which scope we're currently in.
// Do you know a better way? Tell me ... ;-)
$basePath = t3lib_extMgm::siteRelPath('rlmp_dateselectlib').'/locallang.php';
if (@is_file($basePath)) {
include('./'.$basePath);
}
if (isset($LOCAL_LANG[$this->LLkey][$key])) {
$word = $GLOBALS['TSFE']->csConv($LOCAL_LANG[$this->LLkey][$key], $this->LOCAL_LANG_charset[$this->LLkey][$key]); // The "from" charset is normally empty and thus it will convert from the charset of the system language, but if it is set (see ->pi_loadLL()) it will be used.
} elseif ($this->altLLkey && isset($LOCAL_LANG[$this->altLLkey][$key])) {
$word = $GLOBALS['TSFE']->csConv($LOCAL_LANG[$this->altLLkey][$key], $this->LOCAL_LANG_charset[$this->altLLkey][$key]); // The "from" charset is normally empty and thus it will convert from the charset of the system language, but if it is set (see ->pi_loadLL()) it will be used.
} elseif (isset($LOCAL_LANG['default'][$key])) {
$word = $LOCAL_LANG['default'][$key]; // No charset conversion because default is english and thereby ASCII
} else {
$word = $this->LLtestPrefixAlt.$alt;
}
$output = $this->LLtestPrefix.$word;
if ($hsc) $output = htmlspecialchars($output);
return $output;
}
Der Fehler sagt mir, dass ich ja eine Methode rufe ohne eine Objekt zu haben,
aber im Manual steht ja auch:
"Notice that you don't create an instance of the extension's class, you just call it."
Wer kann mir weiterhelfen?
P.S. Google brachte nur 1 Treffer zu dem Problem: http://www.kamigo.at/ 8-)
Ich bin also nicht der Einzigste...