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:31:47 +0000 (15:31 +0000)
commit2e3696b224b6baf4b71c61331645724a90375f39
tree30e64ed1730d0d59e811fc97d6ac88e8c28fe8bf
parentd418e8e261600fd6b3aed2dc9430e529027f2dd6
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