diff options
author | Jayprakash12345 <0freerunning@gmail.com> | 2021-09-18 23:48:11 +0530 |
---|---|---|
committer | Legoktm <legoktm@debian.org> | 2022-01-23 21:19:26 +0000 |
commit | fbb9e2e809db917e078823faa45840845fd2fb68 (patch) | |
tree | a230e7c3e14e7d241dfd92627b2628c06693deb1 | |
parent | 1f78d6a2498944104b5a32d28a672b23f1b38df4 (diff) |
resetPageRandom.php: Fix --from and --to options
These options weren't actually reading the option values, just
returning `1`, which would turn into `"19700101000001"`.
Bug: T291331
Change-Id: I93e11f18dc81b3875e0d3797e67553f7365ce963
-rw-r--r-- | maintenance/resetPageRandom.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/resetPageRandom.php b/maintenance/resetPageRandom.php index 5362149b37bc..65fa9136b987 100644 --- a/maintenance/resetPageRandom.php +++ b/maintenance/resetPageRandom.php @@ -33,9 +33,9 @@ class ResetPageRandom extends Maintenance { parent::__construct(); $this->addDescription( 'Reset the page_random for articles within given date range' ); $this->addOption( 'from', - 'From date range selector to select articles to update, ex: 20041011000000' ); + 'From date range selector to select articles to update, ex: 20041011000000', false, true ); $this->addOption( 'to', - 'To date range selector to select articles to update, ex: 20050708000000' ); + 'To date range selector to select articles to update, ex: 20050708000000', false, true ); $this->addOption( 'dry', 'Do not update column' ); $this->addOption( 'batch-start', 'Optional: Use when you need to restart the reset process from a given page ID offset' |