Project

General

Profile

Bug #70252 ยป bug-function-module-wrong-path.diff

Franz Holzinger, 2015-10-01 09:59

View differences:

/home/franz/Arbeit/TYPO3core/bug_function_module_path/typo3/sysext/backend/Classes/Module/AbstractFunctionModule.php 2015-10-01 09:51:00.000000000 +0200
*/
public function init(&$pObj, $conf) {
$this->pObj = $pObj;
// Path of this script:
if (isset($conf['path']) && file_exists($conf['path'])) {
$this->thisPath = dirname($conf['path']);
} else {
$reflector = new \ReflectionObject($this);
$this->thisPath = dirname($reflector->getFilename());
if (!@is_dir($this->thisPath)) {
throw new \RuntimeException('TYPO3 Fatal Error: Could not find path for class ' . get_class($this), 1381164687);
}
}
// Local lang:
$this->incLocalLang();
// Setting MOD_MENU items as we need them for logging:
    (1-1/1)