mediawiki-extensions-Echo/includes
DannyS712 3269afae8e Remove use of global $wgUser
This partially reverts commit 83a181ce9c
and fully reverts 82896eff62

To avoid regressing to the errors from T139665, check if the user
retrieved from RequestContext::getMain()->getUser() is safe to load
instead of $wgUser, still in addition to the other checks that
EchoForeignWikiRequest::$user is safe to load.

Bug: T243732
Change-Id: I22c4918fc7e8b3d1364a95de3958c055059971b8
2021-07-14 04:57:34 +00:00
..
api phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure 2021-05-04 09:06:42 -07:00
cache Fix PSR12.Properties.ConstantVisibility.NotFound 2020-09-19 21:26:38 +00:00
controller phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure 2021-05-04 09:06:42 -07:00
exception Hygiene: Update method documentation & split exception to a file 2014-08-04 17:43:57 -07:00
formatters phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure 2021-05-04 09:06:42 -07:00
gateway Replace uses of DB_MASTER with DB_PRIMARY 2021-05-13 02:04:54 +02:00
iterator phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure 2021-05-04 09:06:42 -07:00
jobs Implement delayed echo notifications 2020-10-28 12:11:15 +01:00
mapper NotificationMapper: accept UserIdentity objects 2021-06-29 05:53:41 +00:00
model Merge "Replace RecentChange::getPerformer with RecentChange::getPerformerIdentity" 2021-05-24 15:27:56 +00:00
ooui build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 05:09:44 +00:00
Push Make AttributeManager a service 2021-02-26 12:58:23 -08:00
special SpecialNotifications: Load mark-as-read icon in no-JS mode 2021-06-01 23:02:59 +02:00
AttributeManager.php AttributeManager: accept UserIdentity objects 2021-06-29 06:41:47 +00:00
Bundleable.php Add strict "array" type hints to code expecting arrays 2019-10-24 15:18:58 +00:00
Bundler.php Remove probably outdated error suppression 2021-06-29 17:29:23 +02:00
DataOutputFormatter.php phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure 2021-05-04 09:06:42 -07:00
DeferredMarkAsDeletedUpdate.php Replace uses of DB_MASTER with DB_PRIMARY 2021-05-13 02:04:54 +02:00
DiscussionParser.php Avoid using ContentHandler::getContentText() 2021-05-17 23:44:00 +02:00
EchoArrayList.php Fix multiple PHP class declarations in one file 2018-01-21 21:17:53 +00:00
EchoCachedList.php Drop private EchoCachedList::ONE_DAY, unused 2020-09-20 13:38:01 +01:00
EchoContainmentList.php Make "@… array" type hints more specific 2018-08-13 09:27:37 +02:00
EchoContainmentSet.php Add page linked event title muted list 2020-05-06 12:38:55 +02:00
EchoDbFactory.php Replace uses of DB_MASTER with DB_PRIMARY 2021-05-13 02:04:54 +02:00
EchoDiffGroup.php Make "@… array" type hints more specific 2018-08-13 09:27:37 +02:00
EchoDiffParser.php build: Updating mediawiki/mediawiki-codesniffer to 32.0.0 2020-10-29 14:24:24 +00:00
EchoHooks.php Merge "Hardcode talk alert id to be pt-talk-alert" 2021-07-13 19:42:47 +00:00
EchoOnWikiList.php Avoid using ContentHandler::getContentText() 2021-05-17 23:44:00 +02:00
EchoServices.php Make AttributeManager a service 2021-02-26 12:58:23 -08:00
EchoSummaryParser.php phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure 2021-05-04 09:06:42 -07:00
EmailBatch.php build: Updating composer dependencies 2021-05-04 09:05:15 -07:00
EmailFormat.php Fix PSR12.Properties.ConstantVisibility.NotFound 2020-09-19 21:26:38 +00:00
EmailFrequency.php Fix PSR12.Properties.ConstantVisibility.NotFound 2020-09-19 21:26:38 +00:00
EventLogging.php EventLogging: accept UserIdentity objects 2021-06-29 06:12:59 +00:00
ForeignNotifications.php phpcs: Break long lines 2020-06-27 12:05:03 +02:00
ForeignWikiRequest.php Remove use of global $wgUser 2021-07-14 04:57:34 +00:00
Notifier.php Avoid using User::isBlocked 2021-03-03 21:39:10 +02:00
NotifUser.php Replace uses of DB_MASTER with DB_PRIMARY 2021-05-13 02:04:54 +02:00
ResourceLoaderEchoImageModule.php Remove non helpful (auto-generated) comments 2019-10-23 12:31:35 +02:00
schemaUpdate.php Enable MediaWiki.Usage.ForbiddenFunctions.isset and make pass 2020-02-09 11:58:49 +01:00
SeenTime.php phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure 2021-05-04 09:06:42 -07:00
UnreadWikis.php build: Updating composer dependencies 2021-05-04 09:05:15 -07:00
UserLocator.php phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure 2021-05-04 09:06:42 -07:00