From 3866a77e4b84160664d675a09409b5aa47715f94 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 13 Mar 2011 00:31:01 +0000 Subject: [PATCH] Tweak comment format Fix space/brace Define member variable --- includes/specials/SpecialAllmessages.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialAllmessages.php b/includes/specials/SpecialAllmessages.php index 6108af1584..68b6e1d4eb 100644 --- a/includes/specials/SpecialAllmessages.php +++ b/includes/specials/SpecialAllmessages.php @@ -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 ) { -- 2.20.1