X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryTokens.php;h=8854aac0de3652103312108c5d082a7681230152;hb=b1972f3110360558d37b813a842fafff8a70abb0;hp=0e46fd0572d13339d0134829c1b94a2f2cd88661;hpb=313dde5d06c42be1eb7da9127ec92bb5d360ddab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryTokens.php b/includes/api/ApiQueryTokens.php index 0e46fd0572..8854aac0de 100644 --- a/includes/api/ApiQueryTokens.php +++ b/includes/api/ApiQueryTokens.php @@ -2,8 +2,6 @@ /** * Module to fetch tokens via action=query&meta=tokens * - * Created on August 8, 2014 - * * Copyright © 2014 Wikimedia Foundation and contributors * * This program is free software; you can redistribute it and/or modify @@ -96,7 +94,7 @@ class ApiQueryTokens extends ApiQueryBase { public static function getToken( User $user, MediaWiki\Session\Session $session, $salt ) { if ( is_array( $salt ) ) { $session->persist(); - return call_user_func_array( [ $session, 'getToken' ], $salt ); + return $session->getToken( ...$salt ); } else { return $user->getEditTokenObject( $salt, $session->getRequest() ); }