site: Make getPageUrl consistently return null
authorDaimona Eaytoy <daimona.wiki@gmail.com>
Tue, 17 Sep 2019 10:20:50 +0000 (12:20 +0200)
committerDaimona Eaytoy <daimona.wiki@gmail.com>
Tue, 17 Sep 2019 10:20:50 +0000 (12:20 +0200)
commit67f8131534e8aa3c2085ed3ad3a8a2b0cf5dcbac
treec7c10fa68afcb5193d431db538ec23756cc35b32
parent24ed66642ff5e0925b5cb13dd2c6d67115163425
site: Make getPageUrl consistently return null

This was pointed out in Ia8443e575c22f47a6d8c63038f4e7ac36815fc27. The
method checks if $url is false, but that's never the case because
getLinkPath returns string|null.

Change-Id: I7850bff928f861d796879301ba0b4e575919407e
includes/site/MediaWikiSite.php
includes/site/Site.php