From 3a61c79f4872a4b93d4f27968d0a15b9a3427a12 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 20 Sep 2008 05:44:29 +0000 Subject: [PATCH] Fixed warning. QueryPage subclasses are required to allow construction with no constructor parameters. This property is used by maintenance/updateSpecialPages.php. --- includes/specials/SpecialLinkSearch.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index b8ff4794ff..6cce00af83 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -64,17 +64,20 @@ function wfSpecialLinkSearch( $par ) { $wgOut->addHtml( $s ); if( $target != '' ) { - $searcher = new LinkSearchPage( $target2, $namespace, $protocol ); + $searcher = new LinkSearchPage; + $searcher->setParams( array( + 'query' => $target2, + 'namespace' => $namespace, + 'protocol' => $protocol ) ); $searcher->doQuery( $offset, $limit ); } } class LinkSearchPage extends QueryPage { - - function __construct( $query, $ns, $prot ) { - $this->mQuery = $query; - $this->mNs = $ns; - $this->mProt = $prot; + function setParams( $params ) { + $this->mQuery = $params['query']; + $this->mNs = $params['namespace']; + $this->mProt = $params['protocol']; } function getName() { -- 2.20.1