diff --git a/src/LegacyModule.php b/src/LegacyModule.php index 737101b5c..5ef2a0ee6 100644 --- a/src/LegacyModule.php +++ b/src/LegacyModule.php @@ -65,7 +65,8 @@ class LegacyModule extends BaseModule $function_name = static::$moduleName . '_' . $function_suffix; if (\function_exists($function_name)) { - return $function_name(self::getApp()); + $a = self::getApp(); + return $function_name($a); } else { return parent::{$function_suffix}(); }