Commit graph

15 commits

Author SHA1 Message Date
Thiemo Kreuz f7ab8d10be Make various generic "array" type hints more specific
Includes fixing a misplaced count(). Looks like this issue was
introduced in 9bb2bc11 in 2006.

Change-Id: I27cb11419aa828330f4e06f06295f459b430fdbf
2022-10-04 12:37:47 +02:00
Umherirrender cae88c4609 Use WikiPageFactory to create WikiPage object
Bug: T297688
Change-Id: I30a7d2ccd1814c115d0d1714c6de7b31fb7efb27
2022-06-24 19:44:29 +02:00
Reedy 52bb0939d9 Namespace extension
Change-Id: Ie53302078d5f405eaa6caef3b7ef4daebf47d877
2022-04-08 13:41:20 +00:00
DannyS712 a12591ca97 Use WikiPage::doUserEditContent() instead of ::doEditContent()
::doUserEditContent() is available since 1.36 as a replacement
for ::doEditContent(), which has been deprecated. Extension
already requires MediaWiki 1.36+, so the method is always
available.

Bug: T255507
Change-Id: I6bccbe68a1c462fa8c44d0e5aa01656e73f5c2b8
2021-06-24 04:37:06 +00:00
Alexander Vorwerk daba89ed47 Avoid using ContentHandler::getContentText()
ContentHandler::getContentText() is deprecated and should be
replaced with Content::getText() for TextContent instances.

Change-Id: Ic858f41f66d3c6654f28e3b330d1ce3a35507b13
2021-05-18 00:32:36 +02:00
Umherirrender 54aa7a3f3a Pass function name to IDatabase::selectField
Useful for logging

Change-Id: I7a4dd801221d09f3f9dd4d847340935735d2b491
2020-06-07 01:51:02 +02:00
Petr Pchelko 7043d212c7 Remove usage of Revision::loadFromPageId
Bug: T246284
Change-Id: Id4ec83cc0ac0685857064486697a7daed979ea69
2020-03-04 00:45:53 +00:00
libraryupgrader 2d3b9f1d61 build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Change-Id: I56fbe7470e6dbc7ee2a2e381dc9e811db4b79224
2019-12-29 00:01:51 +00:00
Daimona Eaytoy 25b65a40fe Migrate to new Phan
Bug: T216942
Change-Id: I92c55f8af579a92baa02d9bd1b25b8290f0cd196
2019-03-09 12:42:42 +00:00
Kunal Mehta d6f826bd1f Unbreak and modernize cleanup.php
Bumped MediaWiki requirement for usage of Maintenance::fatalError(),
which was introduced in 1.31.

Change-Id: I24446b93d47184907847ed825b42735a74fbddf0
2018-04-06 10:58:25 -07:00
Brian Wolff b4c45d3597 Fix phan-taint-check false positive
This was causing by echo'ing a value from the database. Since
this script does not use the standard Maintenance class,
phan-taint-check was unable to determine it was a command line
script and thought this was an XSS.

Casting to int caused phan-taint-check to know that the value
was safe, and thus prevents the false positive warning.

Change-Id: Ib786fd591ed50f9b3934efa0c3f06e4c307a81f5
2018-02-15 13:09:49 +00:00
Umherirrender 77e4b9db61 Improve some parameter docs
Change-Id: I2f2027eb1abec05238f36f111dfc35013aa016e2
2017-10-07 11:15:06 +02:00
libraryupgrader 819e31d416 build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I7562a27108030044bdac1cf880ed22e4558f0c83
2017-09-24 05:33:27 +00:00
Umherirrender 3c4e117932 Add phpcs and make pass
Change-Id: I623a982fe6362daab34906a111d123f19676dc22
2017-06-06 18:29:27 +02:00
MarcoAurelio d4760f96e8 Move cleanup.php maintenance script to maintenance folder
Change-Id: I8e937738bb9b7c01606fec134372d1491d91ba86
2017-01-24 11:22:13 +01:00
Renamed from cleanup.php (Browse further)