Umherirrender has uploaded a new change for review. Change subject: Avoid $wgUser when getting tokens in api ......................................................................
Avoid $wgUser when getting tokens in api The api is using static user functions to obtain a token. This functions using $wgUser. Now a user object is passed as new parameter to the static function. If no user object is given, for backward compatibilty the $wgUser is still used, because there maybe caller outside core. Fixed the caller in core to pass a user object. Change-Id: I32cd9ce0cccc1a9ae693ba6cb0012e6415ebbbbb --- M includes/api/ApiQueryInfo.php M includes/api/ApiQueryRecentChanges.php M includes/api/ApiQueryRevisions.php M includes/api/ApiQueryUsers.php M includes/api/ApiTokens.php M includes/resourceloader/ResourceLoaderUserTokensModule.php 6 files changed, 173 insertions(+), 59 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/63/48563/1 -- To view, visit https://gerrit.wikimedia.org/r/48563 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I32cd9ce0cccc1a9ae693ba6cb0012e6415ebbbbb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Umherirrender <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
