Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/154645

Change subject: Use public instead of var in classes
......................................................................

Use public instead of var in classes

Change-Id: I35812c90794c027ff11bccfc07e8c013f90ebd89
---
M NewsRenderer.php
1 file changed, 23 insertions(+), 23 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/News 
refs/changes/45/154645/1

diff --git a/NewsRenderer.php b/NewsRenderer.php
index 8ed8bfd..081b049 100644
--- a/NewsRenderer.php
+++ b/NewsRenderer.php
@@ -18,36 +18,36 @@
 define('NEWS_HEAD_SCAN', 256);
 
 class NewsRenderer {
-       var $parser;
-       var $skin;
+       public $parser;
+       public $skin;
 
-       var $title;
+       public $title;
 
-       var $prefix;
-       var $postfix;
+       public $prefix;
+       public $postfix;
 
-       var $usetemplate;
-       var $templatetext;
-       var $templateparser;
-       var $templateoptions;
+       public $usetemplate;
+       public $templatetext;
+       public $templateparser;
+       public $templateoptions;
 
-       var $changelist;
+       public $changelist;
 
-       var $namespaces;
-       var $categories;
-       var $types;
+       public $namespaces;
+       public $categories;
+       public $types;
 
-       var $nominor;
-       var $noanon;
-       var $nobot;
-       var $notalk;
+       public $nominor;
+       public $noanon;
+       public $nobot;
+       public $notalk;
 
-       var $onlynew;
-       var $onlypatrolled;
+       public $onlynew;
+       public $onlypatrolled;
 
-       var $publication; //"publication" mode, as opposed to the default 
"updates" mode
-       var $pubtrigger; //word to use in summaries to trigger publication
-       var $permalinks; //wether to force permalinks in feeds, even in 
publication mode
+       public $publication; //"publication" mode, as opposed to the default 
"updates" mode
+       public $pubtrigger; //word to use in summaries to trigger publication
+       public $permalinks; //wether to force permalinks in feeds, even in 
publication mode
 
        static function newFromArticle( $article, $parser ) {
                $article->getContent();
@@ -718,7 +718,7 @@
 }
 
 class NewsFeedPage extends Article {
-       var $mFeedFormat;
+       public $mFeedFormat;
 
        function __construct($title, $format) {
                Article::__construct( $title );

-- 
To view, visit https://gerrit.wikimedia.org/r/154645
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I35812c90794c027ff11bccfc07e8c013f90ebd89
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/News
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to