r96757 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96756‎ | r96757 | r96758 >
Date:23:22, 10 September 2011
Author:jeroendedauw
Status:ok (Comments)
Tags:
Comment:
do not list special:surveystats
Modified paths:
  • /trunk/extensions/Survey/specials/SpecialSurveyStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Survey/specials/SpecialSurveyStats.php
@@ -19,7 +19,7 @@
2020 * @since 0.1
2121 */
2222 public function __construct() {
23 - parent::__construct( 'SurveyStats', 'surveyadmin' );
 23+ parent::__construct( 'SurveyStats', 'surveyadmin', false );
2424 }
2525
2626 /**

Comments

#Comment by Nikerabbit (talk | contribs)   09:53, 11 September 2011

To make the code more readable you could instead call $this->setListed( false );

Status & tagging log