Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
archiveprefix - trim extracted value
Should fix ``` [2021-10-18 17:44:38] cluebot3.INFO: doarchive(Talk:Tao, Talk:Tao/Archive, %%i, 2160, 2, 5, {{Automatic archive navigator}},{{User:ClueBot III/ArchiveNow}},2,0,0,0,, 75000, 4,) [] [] [2021-10-18 17:44:39] cluebot3.ERROR: listprefix API Error: array ( 'code' => 'badvalue', 'info' => 'Unrecognized value for parameter "apnamespace": .', '*' => 'See https://en.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes.', ) [] [] ``` Which is being extracted as ``` array(2) { [0]=> string(5) " Talk" [1]=> string(11) "Tao/Archive" } ``` And thus returns a blank string for the namespace.
- Loading branch information