dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
43a548a
)
Merge "Avoid globals in EditPage::__construct()"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Tue, 18 Jul 2017 14:44:28 +0000
(14:44 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 18 Jul 2017 14:44:28 +0000
(14:44 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
814c248
..
973327b
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-422,8
+422,6
@@
class EditPage {
* @param Article $article
*/
public function __construct( Article $article ) {
- global $wgOOUIEditPage;
-
$this->mArticle = $article;
$this->page = $article->getPage(); // model object
$this->mTitle = $article->getTitle();
@@
-434,7
+432,7
@@
class EditPage {
$handler = ContentHandler::getForModelID( $this->contentModel );
$this->contentFormat = $handler->getDefaultFormat();
- $this->oouiEnabled = $
wgOOUIEditPage
;
+ $this->oouiEnabled = $
this->context->getConfig()->get( 'OOUIEditPage' )
;
}
/**