dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Accept BCP 47 codes as aliases for nonstandard variants
[lhc/web/wiklou.git]
/
includes
/
actions
/
Action.php
diff --git
a/includes/actions/Action.php
b/includes/actions/Action.php
index
e8d9a3e
..
fb22445
100644
(file)
--- a/
includes/actions/Action.php
+++ b/
includes/actions/Action.php
@@
-104,7
+104,7
@@
abstract class Action implements MessageLocalizer {
}
if ( is_callable( $classOrCallable ) ) {
}
if ( is_callable( $classOrCallable ) ) {
- return
call_user_func_array( $classOrCallable, [ $page, $context ]
);
+ return
$classOrCallable( $page, $context
);
}
return $classOrCallable;
}
return $classOrCallable;
@@
-255,7
+255,7
@@
abstract class Action implements MessageLocalizer {
*/
final public function msg( $key ) {
$params = func_get_args();
*/
final public function msg( $key ) {
$params = func_get_args();
- return
call_user_func_array( [ $this->getContext(), 'msg' ],
$params );
+ return
$this->getContext()->msg( ...
$params );
}
/**
}
/**