From: Sam Reed Date: Sun, 13 Mar 2011 00:31:01 +0000 (+0000) Subject: Tweak comment format X-Git-Tag: 1.31.0-rc.0~31480 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Category:Foo?a=commitdiff_plain;h=3866a77e4b84160664d675a09409b5aa47715f94;p=lhc%2Fweb%2Fwiklou.git Tweak comment format Fix space/brace Define member variable --- 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 ) {