From: Brion Vibber Date: Thu, 15 Nov 2007 02:13:00 +0000 (+0000) Subject: Constructor parameters on a QueryPage need to be optional, so the class can be loaded... X-Git-Tag: 1.31.0-rc.0~50871 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=1e02d6702789d3ad540c00dcb887e1f7cce148ce;p=lhc%2Fweb%2Fwiklou.git Constructor parameters on a QueryPage need to be optional, so the class can be loaded in other contexts (such as running updateSpecialPages.php) --- diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 6824b1c2bf..1f93cc3548 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -17,7 +17,7 @@ class NewPagesPage extends QueryPage { var $hidebots; var $defaults; - function NewPagesPage( $namespace, $username, $hideliu, $hidepatrolled, $hidebots, $defaults) { + function NewPagesPage( $namespace=NS_MAIN, $username='', $hideliu=false, $hidepatrolled=false, $hidebots=false, $defaults=array()) { $this->namespace = $namespace; $this->username = $username; $this->hideliu = $hideliu;