dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0abad4
)
Add SpecialPage::getConfig
author
Kunal Mehta
<legoktm@gmail.com>
Tue, 3 Jun 2014 22:14:22 +0000
(15:14 -0700)
committer
Kunal Mehta
<legoktm@gmail.com>
Tue, 3 Jun 2014 22:14:22 +0000
(15:14 -0700)
This is necessary since SpecialPage doesn't extend ContextSource yet.
Change-Id: I94c28dc88e9eb569eec5c5ab6e2ce97acc6a25e3
includes/specialpage/SpecialPage.php
patch
|
blob
|
history
diff --git
a/includes/specialpage/SpecialPage.php
b/includes/specialpage/SpecialPage.php
index
82d6177
..
7ec9f4a
100644
(file)
--- 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
*