Browse Source
Fix Notice in LegacyModule
Notice: Only variables should be passed by reference in src/LegacyModule.php on line 68
pull/6123/head
fabrixxm
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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}(); |
|
|
|
} |
|
|
|