aboutsummaryrefslogtreecommitdiffstats
path: root/includes/logging/PatrolLog.php
Commit message (Collapse)AuthorAgeFilesLines
* logging: Use `getPage()` instead of `getTitle()`Derick Alangi2024-07-131-1/+6
| | | | | | | The latter is the new way, we don't want to rely on the full Title object these days and the former has already been deprecated. Change-Id: Id37b1e36d5211d1218e80f8b4da420c2a65bd2fe
* Convert RecentChange::doMarkPatrolled to AuthorityPetr Pchelko2021-03-031-2/+4
| | | | Change-Id: If93d6133f61bf0801bbe979885e2fb120e01a33d
* Remove support for PatrolLog::record without passing a user objectDannyS7122020-09-031-9/+2
| | | | | | | Hard deprecated in 1.35, all callers already updated Bug: T245707 Change-Id: Ib51ce75fe9f33bca0f097010b0a67b6a158357e9
* Use __METHOD__ instead of __FUNCTION__DannyS7122020-02-201-1/+1
| | | | | | Follow up to I8990bc16 Change-Id: Id6435add2eea34ee8f79b70df152d08c3fb29ce1
* Deprecate falling back to $wgUser in some functionsDannyS7122020-02-191-0/+2
| | | | | | | | | | | | | | | | Not passing a user to the following functions is deprecated: * Title::getNotificationTimestamp * Revision::newNullRevision * WikiPage::insertProtectNullRevision * PatrolLog::record * LogEventsList::userCan * LogEventsList::userCanBitfield * LogEventsList::userCanViewLogType * LogPage::addEntry Bug: T242935 Bug: T243652 Change-Id: I8990bc16ac72680fb65f8ca37eb7908749a9e5cc
* logging: Remove unused autopatrol code from PatrolLog classDannyS7122020-01-241-10/+5
| | | | | | | Follows up 922be5106. These code paths are no longer reachable given the early return for `$auto`. Change-Id: I4f3de2e49c60326aa78234cf211e9d179505df6d
* Avoid usage of deprecated setTags() method, use addTags() insteadDerick Alangi2019-09-011-1/+1
| | | | | | | $tags can be `null` as seen in most cases and this causes failures, so, the safer path is to make sure if $tags is a null, do nothing. Change-Id: I5b7e39adba5d08fdcd42c437a72a391be98c8695
* Fix PhanTypeMismatchDeclaredParamUmherirrender2018-07-071-2/+2
| | | | | | Auto fix MediaWiki.Commenting.FunctionComment.DefaultNullTypeParam sniff Change-Id: I865323fd0295aabd06f3e3c75e0e5043fb31069e
* Remove the feature switch for disabling autopatrol loggingAmir Sarabadani2018-04-131-4/+3
| | | | | | | | | Per the RFC, it will now become the default and only behaviour to not log autpatrol actions. The information is already recorded via the rc_patrolled field. Bug: T184485 Change-Id: I98ae895a2b4cde4bb945f1df23be4a070b0bf9c4
* Use distinct log actions for patrolcenarium2016-03-251-1/+3
| | | | | | | | | | | | | A distinct log action is provided for automatic patrols. The old 'auto' param is preserved so that old log entries can still be correctly identified in logs and API queries. With I6a61175f9a111c03d15b4d41751c818e3a411ff6, this enables us to filter new manual patrol entries in logs. Old automatic entries will be in the wrong list, but still marked as automatic. Bug: T27799 Change-Id: I05d962fa3ec45039122bb7e370b7e3fb8bbaa3c8
* Add tags support to patrol, protect, unblock, and undeleteGeoffrey Mon2016-02-291-1/+4
| | | | | | | | | | | | - Add 'tags' parameters to appropriate API modules - Add tag-adding logic to appropriate functions that carry out relevant functions - ManualLogEntry::{set,get}Tags to handle adding tags to log entries in a cleaner fashion - Use ManualLogEntry::setTags in LocalFile::recordUpload2 Bug: T97720 Change-Id: I98c52da7985623bfdafda2dc2dae937b39b72419
* Convert all array() syntax to []Kunal Mehta2016-02-171-2/+2
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Change mixed @param doc for PatrolLog::recordumherirrender2014-07-061-1/+1
| | | | Change-Id: I5323144faa48eb7da8db15a5aa143e103029961f
* Update documentation for log related classesSiebrand Mazeland2013-12-061-6/+6
| | | | Change-Id: I4e00cda46cc7bbcbd17ac2d3d025a76281ee84b6
* Update formatting for log related classesSiebrand Mazeland2013-12-031-2/+1
| | | | Change-Id: I6535467ed9b22d61b7c5caf3f18067a988871751
* Add setting wgLogAutopatrol to toggle logging of autopatrol actionsaude2013-05-301-0/+7
| | | | | | | | Per bug 47415, this is needed for Wikidata and could be useful for other wikis, as well. Bug: 47415 Change-Id: Ic999454d001c38dea08746d1e8184f0163cb7330
* update @param @return doc in several filesAntoine Musso2012-07-101-1/+1
| | | | Change-Id: I0e23227330f90dc4121fd2a313d2e9a33c3c97a7
* Make PatrolLog::record() use RecentChange::getTitle(); no need to create a ↵Alexandre Emsenhuber2012-06-301-16/+12
| | | | | | new object itself. Change-Id: I5b8f58cf03669768132c64aafa3a968e198a7f73
* Added missing GPLv2 headers in some places.Alexandre Emsenhuber2012-04-301-3/+22
| | | | | | Also made file/class documentation more consistent. Change-Id: I1815587ab2eeb24623ce4bf1c695088bd3f1c2ea
* Added $performer parameter to PatrolLog::record() and pass it from ↵Alexandre Emsenhuber2012-02-211-3/+7
| | | | | | | WikiPage::doEdit() and RecentChange::doMarkPatrolled() since the performer is not necessarily $wgUser Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112054
* Fix parse error from r111965Alexandre Emsenhuber2012-02-201-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/111967
* fix bug #34495 — patrol log credit the user patrolled, not the user patrollingMark A. Hershberger2012-02-201-1/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/111965
* Moved PatrolLog to logging folder, sorted the autoloaded entries alphabeticallyNiklas Laxström2011-09-201-0/+58
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/97603