Add check for page existence
authorAmmar Abdulhamid <ammarpad@yahoo.com>
Mon, 9 Mar 2020 08:57:43 +0000 (09:57 +0100)
committerReedy <reedy@wikimedia.org>
Mon, 9 Mar 2020 15:30:43 +0000 (15:30 +0000)
commit3a7be6fd4959c8a925b38ef7e928d41ae1daa0c7
treee68bc54a5ea9b76a1e1610ceb65ee0ae84a55bcf
parent19e0ba132d96f994be61adfe29945235e705e825
Add check for page existence

Currently even if the page does not exist at all this script just says
"there's no content" which is partially true. If the page does exist but with
no content and/or blank the same answer is also given, which is OK in that case
but less so in the former case.

Also handle special pages instead of throwing exception.

Change-Id: Ia15b336d989d3605ead1891e3396380e8e6d4347
maintenance/view.php