SpecialListgrouprights: Fix "Namespace restrictions" header ID
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 22 Nov 2017 22:31:34 +0000 (17:31 -0500)
committerRoan Kattouw <roan.kattouw@gmail.com>
Thu, 7 Dec 2017 18:25:04 +0000 (10:25 -0800)
commitf0aa0b7db3b81788cb398450581ecb0cd42fa896
tree64401c5481b156e50578abcda96e43d40ea55031
parent62f284a6acd215a9f6bc8837eb5a9cbddd2f2743
SpecialListgrouprights: Fix "Namespace restrictions" header ID

* Strip the '#' from the start of the <h2>'s id attribute
* Don't parse the header message. It doesn't contain HTML, and it's used
  as plain text anyway.
* Use guessSectionNameFromStrippedText() because we are now feeding it
  plain text. Previously we were calling guessSectionNameFromWikitext()
  but passing in HTML.

Change-Id: I380c20293437dbcd3419f83ea8b7a7ee0bb504f1
includes/specials/SpecialListgrouprights.php