Parent5446 has uploaded a new change for review. Change subject: Added contexts to Hooks. ......................................................................
Added contexts to Hooks. Added third parameter to wfRunHooks() and Hooks::run() that allows the passing of an IContextSource argument. If the argument is not passed, RequestContext::getMain() is used instead. Then, for each hook, if the callback object or any data passed to a callback inherits ContextSource, Hooks will set the context on those objects to the one provided. Also, any hooks in the core that are run within some sort of context were changed to pass that context to the hooks using the aformentioned new parameter. Those that do not take place in a context were left alone, which defaults to RequestContext::getMain(). Change-Id: I0e2cefcc1e54cf2cb9e816152f7233396153c6e0 --- M includes/Action.php M includes/Article.php M includes/CategoryPage.php M includes/ChangesList.php M includes/GlobalFunctions.php M includes/Hooks.php M includes/ImagePage.php M includes/OutputPage.php M includes/Preferences.php M includes/Skin.php M includes/SkinLegacy.php M includes/SkinTemplate.php M includes/SpecialPage.php M includes/Wiki.php M includes/actions/EditAction.php M includes/actions/HistoryAction.php M includes/actions/InfoAction.php M includes/actions/RawAction.php M includes/api/ApiBase.php M includes/api/ApiEditPage.php M includes/api/ApiLogin.php M includes/api/ApiLogout.php M includes/api/ApiMain.php M includes/api/ApiQuery.php M includes/api/ApiQueryInfo.php M includes/api/ApiQueryRecentChanges.php M includes/api/ApiQueryRevisions.php M includes/api/ApiQuerySiteinfo.php M includes/api/ApiQueryUsers.php M includes/api/ApiRsd.php M includes/api/ApiTokens.php M includes/api/ApiUndelete.php M includes/context/RequestContext.php M includes/diff/DifferenceEngine.php M includes/logging/LogEventsList.php M includes/logging/LogFormatter.php M includes/specials/SpecialBlock.php M includes/specials/SpecialBlockList.php M includes/specials/SpecialBooksources.php M includes/specials/SpecialChangeEmail.php M includes/specials/SpecialChangePassword.php M includes/specials/SpecialContributions.php M includes/specials/SpecialDeletedContributions.php M includes/specials/SpecialEditWatchlist.php M includes/specials/SpecialEmailuser.php M includes/specials/SpecialImport.php M includes/specials/SpecialListusers.php M includes/specials/SpecialMergeHistory.php M includes/specials/SpecialMovepage.php M includes/specials/SpecialNewpages.php M includes/specials/SpecialPasswordReset.php M includes/specials/SpecialRandompage.php M includes/specials/SpecialRecentchanges.php M includes/specials/SpecialRecentchangeslinked.php M includes/specials/SpecialSearch.php M includes/specials/SpecialStatistics.php M includes/specials/SpecialUndelete.php M includes/specials/SpecialUpload.php M includes/specials/SpecialUserlogin.php M includes/specials/SpecialUserlogout.php M includes/specials/SpecialUserrights.php M includes/specials/SpecialVersion.php M includes/specials/SpecialWantedpages.php M includes/specials/SpecialWatchlist.php 64 files changed, 211 insertions(+), 194 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/65/27265/1 -- To view, visit https://gerrit.wikimedia.org/r/27265 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0e2cefcc1e54cf2cb9e816152f7233396153c6e0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Parent5446 <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
