specials: Fix fatal MWNamespace exception on Special:Contributions
authorDerick Alangi <alangiderick@gmail.com>
Sun, 17 Feb 2019 11:38:12 +0000 (12:38 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Mon, 18 Feb 2019 23:10:31 +0000 (00:10 +0100)
commit77276ce02a6aaaec9e8e41591a857897047fb393
tree5395598543c0c8fd74259597baf79039877d9c9c
parentb8020d80168dfac2e999251b0f96673c395d87ce
specials: Fix fatal MWNamespace exception on Special:Contributions

Namespaces with negative values (valid like -1 and -2 or invalid like
less than -2), should not be processed as they do not have associated
namespaces. Rather than throwing an exception, nicely tell the user
the namespace is a negative value and doesn't have an associated
namespace to it.

Also, don't show any results, just load the form again so user can do
another request but show reason for this behavior atop of form.

Bug: T150324
Change-Id: I525d305a4dabb040110894d3230eeb5e04ff8336
includes/specials/SpecialContributions.php
languages/i18n/en.json
languages/i18n/qqq.json