wiki.techinc.nl/includes/api
Thalia 9335363789
Store block reasons as CommentStoreComments in block classes
AbstractBlock::setReason now accepts a string, Message or
CommentStoreComment. The CommentStoreComment is accessed via
AbstractBlock::getReasonComment.

AbstractBlock::getReason returns the reason as a string, with
the language and format consistent with how block reasons were
built before this commit. This method is deprecated, since it
makes assumptions about the language and format needed. The
deprecated mReason property is no longer public.

Doing this (and T227005) will remove the implicit dependency of
BlockManager::getUserBlock on language, which causes a recursion
error if the block is checked before the user has loaded. It also
provides a mechanism for getting the block reason in a language
specified by the caller. (This does not apply to DatabaseBlock
reasons entered via the Special:Block form, which were not and
are still not translatable.)

This commit also updates authentication classes to return the
translated reason.

Bug: T227007
Change-Id: Iec36876e930dff96a256aebbdc39cbfb331c244e
2019-10-18 17:47:56 -04:00
..
i18n Localisation updates from https://translatewiki.net. 2019-10-17 09:03:39 +02:00
ApiAMCreateAccount.php
ApiAuthManagerHelper.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiBase.php Set constant visibility, part 1 2019-10-18 02:19:24 +00:00
ApiBlock.php Better grouping for code adding elements to arrays 2019-09-03 19:38:57 +02:00
ApiBlockInfoTrait.php Store block reasons as CommentStoreComments in block classes 2019-10-18 17:47:56 -04:00
ApiChangeAuthenticationData.php
ApiCheckToken.php
ApiClearHasMsg.php
ApiClientLogin.php
ApiComparePages.php Suppress PhanUndeclaredProperty for custom properties and phan bugs 2019-09-14 13:22:54 +00:00
ApiContinuationManager.php Fix/suppress misc phan errors (#4) 2019-04-05 22:28:31 +00:00
ApiCSPReport.php API: Fix 'user_id' field of ApiCSPReport 2019-07-19 22:58:39 +01:00
ApiDelete.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiDisabled.php Remove use of old API doc methods 2018-10-29 14:58:19 -07:00
ApiEditPage.php phan: Disable enable_class_alias_support 2019-09-15 08:26:52 +00:00
ApiEmailUser.php
ApiErrorFormatter.php phan: Enable PhanTypeMismatchArgument issue 2019-09-19 20:11:42 +02:00
ApiErrorFormatter_BackCompat.php Split ApiErrorFormatter.php to have one class in one file 2019-04-21 22:20:22 +00:00
ApiExpandTemplates.php API: Remove unused asignment to $titleProvided in ApiExpandTemplates 2019-09-08 03:46:13 +00:00
ApiFeedContributions.php Avoid extra Title::newFromId calls in api modules with revisions 2019-10-10 19:14:19 +00:00
ApiFeedRecentChanges.php Remove unused constructor parameter and unused member variables 2019-04-14 01:43:19 +00:00
ApiFeedWatchlist.php Unsuppress PhanParamsTooMany 2019-10-10 12:44:08 -07:00
ApiFileRevert.php
ApiFormatBase.php Remove usage of deprecated SkinFactory::getDefaultInstance() 2019-06-02 21:08:07 -04:00
ApiFormatFeedWrapper.php Refactor edit stashing into a PageEditStash service 2019-04-17 12:53:03 -07:00
ApiFormatJson.php Don't silently fail if API result fails to encode 2018-12-05 13:28:33 -05:00
ApiFormatNone.php
ApiFormatPhp.php Various fixes to make phan-taint-check happier 2019-03-04 03:24:44 +00:00
ApiFormatRaw.php Simplify by using ?: operator 2019-04-15 15:05:00 +02:00
ApiFormatXml.php
ApiFormatXmlRsd.php API: Add missing @ingroup API to a few Api-related classes 2019-09-14 00:09:49 +01:00
ApiHelp.php Highlight internal modules in API help and sandbox 2019-10-11 16:30:16 +02:00
ApiHelpParamValueMessage.php Highlight internal modules in API help and sandbox 2019-10-11 16:30:16 +02:00
ApiImageRotate.php API: Add missing @ingroup API to a few Api-related classes 2019-09-14 00:09:49 +01:00
ApiImport.php Replace User::isAllowed with PermissionManager. 2019-08-20 14:43:51 -07:00
ApiImportReporter.php Unsuppress more phan issues (part 3) 2019-08-31 16:38:55 +00:00
ApiLinkAccount.php
ApiLogin.php Remove unnecessary semi-colons 2019-06-12 14:35:59 +01:00
ApiLogout.php ApiLogout: Follow up Icb674095 2019-04-25 10:00:24 -04:00
ApiMain.php Check and add block cookie to every uncached API request 2019-10-10 15:55:20 -04:00
ApiManageTags.php Replace User::isAllowed with PermissionManager. 2019-08-20 14:43:51 -07:00
ApiMergeHistory.php
ApiMessage.php
ApiMessageTrait.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiModuleManager.php Mark passing non ObjectFactory spec to ApiModuleManager as deprecated 2019-09-09 21:59:03 +02:00
ApiMove.php Avoid multiply calls to MediaWikiServices::getInstance() in one function 2019-09-01 20:49:19 +02:00
ApiOpenSearch.php Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
ApiOpenSearchFormatJson.php Fix a couple of Generic.Files.OneObjectStructurePerFile.MultipleFound in api 2019-04-13 23:32:53 +00:00
ApiOptions.php New hook ApiOptions 2018-10-17 18:02:20 -07:00
ApiPageSet.php Fix use of GenderCache in ApiPageSet::processTitlesArray 2019-09-09 19:54:07 +00:00
ApiParamInfo.php Highlight internal modules in API help and sandbox 2019-10-11 16:30:16 +02:00
ApiParse.php build: Upgrade mediawiki-codesniffer from 26.0.0 to 28.0.0 2019-10-11 10:05:43 -07:00
ApiPatrol.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiProtect.php
ApiPurge.php [MCR] Move getSecondaryDataUpdates to the page level 2018-09-04 21:50:58 +02:00
ApiQuery.php Use ObjectFactory to create API modules 2019-09-09 18:50:16 +00:00
ApiQueryAllCategories.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryAllDeletedRevisions.php api: Make ApiQuery(All)DeletedRevisions accessible to everyone 2019-09-09 22:58:05 +02:00
ApiQueryAllImages.php Remove deprecated User groups/permission static calls. 2019-08-21 19:42:01 -07:00
ApiQueryAllLinks.php i18n: Rename 11 messages for case-compliance 2019-05-18 16:39:49 +02:00
ApiQueryAllMessages.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
ApiQueryAllPages.php i18n: Rename 11 messages for case-compliance 2019-05-18 16:39:49 +02:00
ApiQueryAllRevisions.php Avoid extra Title::newFromId calls in api modules with revisions 2019-10-10 19:14:19 +00:00
ApiQueryAllUsers.php API: Use ApiBlockInfoTrait in ApiQueryUsers and AllUsers 2019-09-18 19:44:01 +00:00
ApiQueryAuthManagerInfo.php
ApiQueryBacklinks.php Declare dynamic properties 2019-09-14 15:21:26 +02:00
ApiQueryBacklinksprop.php Run executeGenderCacheFromResultWrapper with titles in prop=linkshere 2019-10-12 10:40:22 +02:00
ApiQueryBase.php Fill GenderCache for used pages in action=query&prop=fileusage 2019-09-25 21:41:34 +02:00
ApiQueryBlockInfoTrait.php API: Use ApiBlockInfoTrait in ApiQueryUsers and AllUsers 2019-09-18 19:44:01 +00:00
ApiQueryBlocks.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiQueryCategories.php ApiQueryCategories: Supply limit for DB query 2019-09-02 11:39:45 +00:00
ApiQueryCategoryInfo.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryCategoryMembers.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryContributors.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ApiQueryDeletedRevisions.php api: Make ApiQuery(All)DeletedRevisions accessible to everyone 2019-09-09 22:58:05 +02:00
ApiQueryDeletedrevs.php Remove Revision::getRevisionText from ApiQueryDeletedrevs 2019-09-19 08:43:55 -07:00
ApiQueryDisabled.php Remove use of old API doc methods 2018-10-29 14:58:19 -07:00
ApiQueryDuplicateFiles.php
ApiQueryExternalLinks.php Use new externallinks.el_index_60 field 2018-11-12 22:33:18 +00:00
ApiQueryExtLinksUsage.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryFilearchive.php api: Update QueryFilearchive to provide information to everyone 2019-09-06 22:21:58 +02:00
ApiQueryFileRepoInfo.php
ApiQueryGeneratorBase.php
ApiQueryImageInfo.php LocalFile: avoid hard failures on non-existing files. 2019-09-18 09:18:44 +00:00
ApiQueryImages.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryInfo.php Unsuppress phan issues part 6 2019-09-01 09:48:45 +00:00
ApiQueryIWBacklinks.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryIWLinks.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryLangBacklinks.php Merge "Return the page_id in list=langbacklinks as an int" 2019-02-25 02:45:42 +00:00
ApiQueryLangLinks.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryLanguageinfo.php Fix meta=languageinfo usage example 2019-06-25 10:45:14 +02:00
ApiQueryLinks.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryLogEvents.php phan: Enable PhanTypeMismatchArgument issue 2019-09-19 20:11:42 +02:00
ApiQueryMyStashedFiles.php
ApiQueryPagePropNames.php
ApiQueryPageProps.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryPagesWithProp.php
ApiQueryPrefixSearch.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryProtectedTitles.php Fix variable in ApiQueryProtectedTitles 2019-05-23 18:57:23 +02:00
ApiQueryQueryPage.php Update docblocks for methods potentially returning null 2019-09-15 15:22:39 +00:00
ApiQueryRandom.php
ApiQueryRecentChanges.php Deprecate and replace usages of User:isAllowed{All,Any} 2019-08-21 18:36:16 -07:00
ApiQueryRevisions.php Avoid extra Title::newFromId calls in api modules with revisions 2019-10-10 19:14:19 +00:00
ApiQueryRevisionsBase.php Fix some phan warnings for too many params (part 1) 2019-10-10 04:44:53 +00:00
ApiQuerySearch.php Add ISearchResultSet 2019-07-22 18:27:39 +00:00
ApiQuerySiteinfo.php Export $wgMainPageIsDomainRoot in siteinfo API 2019-10-04 17:23:57 -04:00
ApiQueryStashImageInfo.php Fix property filter for ApiQueryStashImageInfo::getPropertyNames 2019-09-10 18:14:49 +00:00
ApiQueryTags.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiQueryTokens.php
ApiQueryUserContribs.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ApiQueryUserInfo.php Remove deprecated method ApiQueryUserInfo::getBlockInfo 2019-10-16 20:46:02 +01:00
ApiQueryUsers.php API: Use ApiBlockInfoTrait in ApiQueryUsers and AllUsers 2019-09-18 19:44:01 +00:00
ApiQueryWatchlist.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
ApiQueryWatchlistRaw.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiRawMessage.php
ApiRemoveAuthenticationData.php
ApiResetPassword.php Turn PasswordReset into a service 2019-10-01 14:42:18 -07:00
ApiResult.php Clean up spacing of doc comments 2019-08-05 22:29:50 +00:00
ApiRevisionDelete.php Allow users who are partially blocked to delete revisions. 2019-09-11 08:14:48 +01:00
ApiRollback.php Use (int) rather than intval() 2019-02-25 00:38:33 +00:00
ApiRsd.php Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
ApiSerializable.php
ApiSetNotificationTimestamp.php Remove usages of Title::get{Previous,Next}RevisionId 2019-09-13 09:49:13 -07:00
ApiSetPageLanguage.php
ApiStashEdit.php Remove redundant ignore_user_abort() call in ApiStashEdit 2019-08-29 22:18:57 -07:00
ApiTag.php phan: Enable PhanTypeMismatchArgument issue 2019-09-19 20:11:42 +02:00
ApiTokens.php
ApiUnblock.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiUndelete.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiUpload.php phan: Enable PhanTypeMismatchArgument issue 2019-09-19 20:11:42 +02:00
ApiUsageException.php Unsuppress PhanParamReqAfterOpt, use PHP71 nullable types 2019-10-10 11:53:58 +02:00
ApiUserrights.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiValidatePassword.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiWatch.php
IApiMessage.php
SearchApi.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00