[MediaWiki-commits] [Gerrit] Don't use $wgContentNamespaces directly - change (mediawiki...VIKI)
jenkins-bot has submitted this change and it was merged. Change subject: Don't use $wgContentNamespaces directly .. Don't use $wgContentNamespaces directly Change-Id: I834ac71ae94f6821c291617d83a4d1fcc4b2a686 --- M ApiGetContentNamespaces.php 1 file changed, 2 insertions(+), 3 deletions(-) Approvals: MaxSem: Looks good to me, approved jenkins-bot: Verified diff --git a/ApiGetContentNamespaces.php b/ApiGetContentNamespaces.php index 6866b4c..2495ab7 100644 --- a/ApiGetContentNamespaces.php +++ b/ApiGetContentNamespaces.php @@ -26,8 +26,7 @@ parent::__construct( $main, $action ); } public function execute() { - global $wgContentNamespaces; - $this->getResult()->addValue( null, $this->getModuleName(), $wgContentNamespaces ); + $this->getResult()->addValue( null, $this->getModuleName(), MWNamespace::getContentNamespaces() ); return true; } @@ -45,4 +44,4 @@ public function getHelpUrls() { return ''; } -} \ No newline at end of file +} -- To view, visit https://gerrit.wikimedia.org/r/291275 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I834ac71ae94f6821c291617d83a4d1fcc4b2a686 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VIKI Gerrit-Branch: master Gerrit-Owner: Legoktm Gerrit-Reviewer: MaxSem Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Don't use $wgContentNamespaces directly - change (mediawiki...VIKI)
Legoktm has uploaded a new change for review. https://gerrit.wikimedia.org/r/291275 Change subject: Don't use $wgContentNamespaces directly .. Don't use $wgContentNamespaces directly Change-Id: I834ac71ae94f6821c291617d83a4d1fcc4b2a686 --- M ApiGetContentNamespaces.php 1 file changed, 2 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VIKI refs/changes/75/291275/1 diff --git a/ApiGetContentNamespaces.php b/ApiGetContentNamespaces.php index 6866b4c..2495ab7 100644 --- a/ApiGetContentNamespaces.php +++ b/ApiGetContentNamespaces.php @@ -26,8 +26,7 @@ parent::__construct( $main, $action ); } public function execute() { - global $wgContentNamespaces; - $this->getResult()->addValue( null, $this->getModuleName(), $wgContentNamespaces ); + $this->getResult()->addValue( null, $this->getModuleName(), MWNamespace::getContentNamespaces() ); return true; } @@ -45,4 +44,4 @@ public function getHelpUrls() { return ''; } -} \ No newline at end of file +} -- To view, visit https://gerrit.wikimedia.org/r/291275 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I834ac71ae94f6821c291617d83a4d1fcc4b2a686 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VIKI Gerrit-Branch: master Gerrit-Owner: Legoktm ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits