Fix Notice in LegacyModule

Notice: Only variables should be passed by reference in src/LegacyModule.php on line 68
This commit is contained in:
fabrixxm 2018-11-13 14:37:51 +01:00 committed by GitHub
parent 320c986e05
commit 972775e58e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,8 @@ class LegacyModule extends BaseModule
$function_name = static::$moduleName . '_' . $function_suffix; $function_name = static::$moduleName . '_' . $function_suffix;
if (\function_exists($function_name)) { if (\function_exists($function_name)) {
return $function_name(self::getApp()); $a = self::getApp();
return $function_name($a);
} else { } else {
return parent::{$function_suffix}(); return parent::{$function_suffix}();
} }