Tweak comment format
authorSam Reed <reedy@users.mediawiki.org>
Sun, 13 Mar 2011 00:31:01 +0000 (00:31 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 13 Mar 2011 00:31:01 +0000 (00:31 +0000)
Fix space/brace

Define member variable

includes/specials/SpecialAllmessages.php

index 6108af1..68b6e1d 100644 (file)
@@ -153,7 +153,8 @@ class SpecialAllmessages extends SpecialPage {
        }
 }
 
-/* use TablePager for prettified output. We have to pretend that we're
+/**
+ * Use TablePager for prettified output. We have to pretend that we're
  * getting data from a table when in fact not all of it comes from the database.
  */
 class AllmessagesTablePager extends TablePager {
@@ -170,6 +171,11 @@ class AllmessagesTablePager extends TablePager {
         */
        public $lang;
 
+       /**
+        * @var null|bool
+        */
+       public $custom;
+
        function __construct( $page, $conds, $langObj = null ) {
                parent::__construct();
                $this->mIndexField = 'am_title';
@@ -251,8 +257,7 @@ class AllmessagesTablePager extends TablePager {
                                if( $this->foreign ) {
                                        $title = explode( '/', $s->page_title );
                                        if( count( $title ) === 2 && $this->langcode == $title[1] 
-                                               && isset( $xNames[$title[0]] ) )
-                                       {
+                                               && isset( $xNames[$title[0]] ) ) {
                                                $pageFlags["{$title[0]}"] = true;
                                        }
                                } elseif( isset( $xNames[$s->page_title] ) ) {
@@ -268,7 +273,8 @@ class AllmessagesTablePager extends TablePager {
                return array( 'pages' => $pageFlags, 'talks' => $talkFlags );
        }
 
-       /* This function normally does a database query to get the results; we need
+       /**
+        *  This function normally does a database query to get the results; we need
         * to make a pretend result using a FakeResultWrapper.
         */
        function reallyDoQuery( $offset, $limit, $descending ) {