r27509 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r27508‎ | r27509 | r27510 >
Date:02:13, 15 November 2007
Author:brion
Status:old
Tags:
Comment:
Constructor parameters on a QueryPage need to be optional, so the class can be loaded in other contexts (such as running updateSpecialPages.php)
Modified paths:
  • /trunk/phase3/includes/SpecialNewpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialNewpages.php
@@ -17,7 +17,7 @@
1818 var $hidebots;
1919 var $defaults;
2020
21 - function NewPagesPage( $namespace, $username, $hideliu, $hidepatrolled, $hidebots, $defaults) {
 21+ function NewPagesPage( $namespace=NS_MAIN, $username='', $hideliu=false, $hidepatrolled=false, $hidebots=false, $defaults=array()) {
2222 $this->namespace = $namespace;
2323 $this->username = $username;
2424 $this->hideliu = $hideliu;

Status & tagging log