X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FAction.php;h=fb22445410ab802ec3f0791a1f4b7f8884465c65;hb=0818070c59eb4e8330496796b943951c01c7a573;hp=e8d9a3e4029a411727fd1b07dc52b8be37996001;hpb=f3a51244a3d19862044b4832dc2bd332c89fc028;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/Action.php b/includes/actions/Action.php index e8d9a3e402..fb22445410 100644 --- a/includes/actions/Action.php +++ b/includes/actions/Action.php @@ -104,7 +104,7 @@ abstract class Action implements MessageLocalizer { } if ( is_callable( $classOrCallable ) ) { - return call_user_func_array( $classOrCallable, [ $page, $context ] ); + return $classOrCallable( $page, $context ); } return $classOrCallable; @@ -255,7 +255,7 @@ abstract class Action implements MessageLocalizer { */ final public function msg( $key ) { $params = func_get_args(); - return call_user_func_array( [ $this->getContext(), 'msg' ], $params ); + return $this->getContext()->msg( ...$params ); } /**