From: Kunal Mehta Date: Tue, 3 Jun 2014 22:14:22 +0000 (-0700) Subject: Add SpecialPage::getConfig X-Git-Tag: 1.31.0-rc.0~15484 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=6a7498bf634c803e31ebc6f0b3b6a2b92801a1ca;p=lhc%2Fweb%2Fwiklou.git Add SpecialPage::getConfig This is necessary since SpecialPage doesn't extend ContextSource yet. Change-Id: I94c28dc88e9eb569eec5c5ab6e2ce97acc6a25e3 --- diff --git a/includes/specialpage/SpecialPage.php b/includes/specialpage/SpecialPage.php index 82d617743f..7ec9f4aff6 100644 --- a/includes/specialpage/SpecialPage.php +++ b/includes/specialpage/SpecialPage.php @@ -580,6 +580,15 @@ class SpecialPage { return $this->getContext()->getLanguage(); } + /** + * Shortcut to get main config object + * @return Config + * @since 1.24 + */ + public function getConfig() { + return $this->getContext()->getConfig(); + } + /** * Return the full title, including $par *