From 1e02d6702789d3ad540c00dcb887e1f7cce148ce Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 15 Nov 2007 02:13:00 +0000 Subject: [PATCH] Constructor parameters on a QueryPage need to be optional, so the class can be loaded in other contexts (such as running updateSpecialPages.php) --- includes/SpecialNewpages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1