Title: Fix isRawHtmlMessage() for messages with underscores
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 28 Aug 2018 19:47:49 +0000 (12:47 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Fri, 31 Aug 2018 16:45:01 +0000 (09:45 -0700)
commit9e5edca6c55bc386f899722cc50a62d669a1314b
tree507f8398304e4e670a7fed085496ef684b9dbeb3
parent9686c83554446d47f3157a3de180ee3e08b5f75a
Title: Fix isRawHtmlMessage() for messages with underscores

Title::getRootText() uses the text form (spaces) of the title, while
$wgRawHtmlMessages was specifying them in dbkey form (underscores).

And add tests while we're at it. Which spotted that the existing
code didn't work. Whoops. Fixed.

Change-Id: I05eea553c588e0f99f862e07ad15386507ed0728
includes/DefaultSettings.php
includes/Title.php
tests/phpunit/includes/TitleTest.php