Commit graph

7 commits

Author SHA1 Message Date
Derick Alangi
c0927cba65 maintenance: Remove arguments that match their default values
Calls to methods with arguments as default values can safely be
removed as there is an exact match. With or without them, code
will still work as intended.

Change-Id: Id8141626a51d9cc8bf8bc0baeb5e38d120664da5
2019-02-27 21:13:57 +00:00
Reedy
39d55d812c Output Done! at end of resetUserEmail.php
Change-Id: I8e5572f0a60e74eec300031e75b79ee71ffc008d
2018-10-20 23:48:55 +01:00
Umherirrender
ad776c7d5f Use ::class to resolve class names in maintenance scripts
This helps to find renamed or misspelled classes earlier.
Phan will check the class names

Change-Id: I1d4567f47f93eb1436cb98558388e48d35258666
2018-01-23 17:40:16 +00:00
Bryan Davis
9e34eeff23 Maintenance: add fatalError() method
Deprecate the second argument to Maintenance::error() in favor of a new
Maintenance::fatalError() method. This is intended to make it easier to
review flow control in maintenance scripts.

Change-Id: I75699008638f7e99b11210c7bb9e2e131fca7c9e
2017-11-21 21:34:16 -07:00
Matthew Flaschen
5ef414072c resetUserEmail: Allow resetting email without scrambling password
There is an mini-script in MediaWiki-Vagrant (set_user_email.erb)
that could be replaced by this.

Change-Id: Ieb0da6cc358506174f1ff01116d0b286f814b2c7
2016-02-18 16:04:49 +00:00
addshore
4db074ef0b Use addDescription in resetUserEmail maint script
Change-Id: Ib1eb8e3adc8deed0d09c1f655218144b2305d137
2016-01-30 14:55:27 +01:00
Max Semenik
362403ccd5 Add script to reset user emails
Current way to do it, via eval.php, is slightly scary.

Change-Id: I2b875326a0eb1e6d1f4bc758b8ac97b8f9324c4e
2016-01-30 13:53:36 +00:00