WikiPage: Use Title::isKnown() in hasViewableContent()
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 13 Sep 2016 04:27:25 +0000 (21:27 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 13 Sep 2016 04:46:28 +0000 (21:46 -0700)
commit25ec0cc39aa083dd6a050939ad3df5a409a81989
tree46477e3d01ef3c75e5029b1674b1b0c2cd22068f
parent148f7bf0d1e20f395891eb58cb506ef37d752eaf
WikiPage: Use Title::isKnown() in hasViewableContent()

The current implementation of hasViewableContent() is basically the same
as Title::isKnown(), except that it switched the order of
isAlwaysKnown() and exists(). (Also it used WikiPage::exists() instead
of Title::exists(), but they're functionality equivalent).

This will make refactoring Title::isAlwaysKnown() easier in the future
as there is one less caller.

Change-Id: I698f08fb0f3e6c3bc702ec7d523d7eda063e18ca
includes/page/WikiPage.php