Apparently for certain (API) requests $this->getTitle() doesn't return a valid Title.
authorJack Phoenix <jack@countervandalism.net>
Wed, 11 Jun 2014 20:00:24 +0000 (23:00 +0300)
committerJack Phoenix <jack@countervandalism.net>
Wed, 11 Jun 2014 20:00:24 +0000 (23:00 +0300)
commit6849fde6cb5cd2dbeec66b3aec266391ca363608
tree134d9656e7c1ff7b632adb3e83008791fc610b3e
parent46f0261af09839942a4727a3c7853bb3eb00462e
Apparently for certain (API) requests $this->getTitle() doesn't return a valid Title.

Usually these are API siteinfo requests (api.php?action=query&meta=siteinfo). In that case, this code used to produce a fatal ("Call to a member function getPageLanguage() on a non-object").

Change-Id: Ifb6f99fe554890ff2719220f58d1b6c1a7a95ddc
includes/OutputPage.php