Special:NewFiles - ensure top text is entirely wrapped
authorC. Scott Ananian <cscott@cscott.net>
Thu, 27 Sep 2018 13:24:15 +0000 (09:24 -0400)
committerC. Scott Ananian <cananian@wikimedia.org>
Thu, 27 Sep 2018 14:23:25 +0000 (14:23 +0000)
commitdf944a187982fbfd5aeac787ec91a7bb60ae03f6
tree16f44076896d0e135a70aa34c5c0f1db725f91b0
parent809d9b684517dee2f1d3cc2082cea662ff65d135
Special:NewFiles - ensure top text is entirely wrapped

The template on commons for newimagestext has a <div> wrapper,
and trying to wrap a <p> around a <div> doesn't work: the <p> is
implicitly closed by the start of the <div>.  Use a <div> wrapper
to set the content language and directionality instead, which ensures
that it is valid HTML and will be tidied correctly.

In the process, fix an extra argument (and unnecessary optional argument)
passed to OutputPage::addWikiTextTidy in
Ife33ceed39ed01d4e9af18e9108026f341e9b343.

Bug: T205624
Change-Id: I42d198e6d03afd5b976da741f235c175bfe9f767
includes/specials/SpecialNewimages.php