Commit graph

15 commits

Author SHA1 Message Date
Umherirrender 1cfba87b23 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I60968f9b735b27eaef20e5d42af322a8c2ecd257
2024-10-19 23:34:41 +02:00
Reedy 36bd54e4ec FancyCaptcha: Allow configuration of the actual directory captchas are stored in
Change-Id: Iecc48db5237adc5b89c99019faac0af425e4eb5d
2024-01-15 15:43:46 +00:00
Umherirrender 92bc1f3d2f Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statements done manually

Change-Id: Id44f211320e56bc83e4c8f243369dc4eb562cf37
2023-12-11 00:07:55 +01:00
Reedy a0feac27b0 Namespace captchas
Change-Id: I2933639f9cb50db2101c4765ce9d8f9069d253b8
2022-12-13 21:40:30 +00:00
Reedy 30cd1d8a23 Namespace base classes
Change-Id: I3fa9747e0ea970c5de39e2da8603e1bba9388a69
2022-07-30 18:13:03 +00:00
Reedy 5876e3bd38 DeleteOldFancyCaptchas: Add some simple chunking to actual delete operation
Change-Id: Ia8f7dcc170a1e9a72313d72ac22ad7e6b3c97aa8
2021-11-16 14:53:30 +00:00
Reedy 297897220c Use $this->fatalError() where $this->error() is called with $die > 1
Change-Id: Ia8cf34437661f53a2c28bc9e2077fe5c7c8103de
2020-09-18 17:11:56 +01:00
jenkins-bot 1b98b8f6c1 Merge "Pass 'adviseStat' => true to ->getFileList() in DeleteOldFancyCaptchas.php" 2019-10-16 15:56:45 +00:00
Reedy 330d59feba Output number of captchas to be deleted before actually deleting
Change-Id: If9cbabe2097f32129ed3ea383b7c86552392e4cb
2019-10-16 00:10:35 +01:00
Reedy 50f8738984 Pass 'adviseStat' => true to ->getFileList() in DeleteOldFancyCaptchas.php
As ->getFileTimestamp() presumably counts as 'stat'-ing the files

Change-Id: Ia187dbc369ff56f154cae2ee46e3e9cd20def933
2019-10-16 00:06:22 +01:00
Umherirrender 19e6d4d902 Use Maintenance::addDescription
It is better to use a setter function than setting a property

Change-Id: I173b3f4af54cf8f6427895e1e170ec97e10d4f3d
2019-08-19 19:03:36 +02:00
Umherirrender 911086980b Improve error messages on deleteOldFancyCaptchas maintenance script
StatusValue::getErrors returns an array of messages, not strings.
It cannot be use on implode(). Use wikitext as it the most readable on
the console

Change-Id: I4b794597f9bf35d3bc34c7d2c7691ee53d43b017
2019-05-10 18:23:40 +02:00
Umherirrender f96b1eda5b Use ::class for class name resolution
Available since php5.5

Change-Id: I9b072c487b84e04fbb7e9ad8ed4b9db46d805ee8
2019-03-02 19:39:36 +01:00
Umherirrender 1d60bc25d2 build: Updating mediawiki/mediawiki-codesniffer to 0.10.0
Change-Id: I8d107ad6801fe1a5ce7b8feb8e1e730d504a2fb3
2017-07-08 16:04:35 +02:00
Reedy a1bdde2631 Add a script to delete old fancy captchas
Bug: T158327

Change-Id: I42ed3e0ee2cf274648cf637164e0ebaed036f4d7
2017-02-17 16:27:18 +00:00