From e38a69fd4e10d02ce1461ca9c806f17bbb5da493 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 2 Jul 2008 02:02:26 +0000 Subject: [PATCH] Cleanup for r36660: use PHP 5 __construct() name for constructors to make things a little clearer when calling parent constructors and such --- includes/SearchPostgres.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/SearchPostgres.php b/includes/SearchPostgres.php index 974e05857f..88e4a0daf8 100644 --- a/includes/SearchPostgres.php +++ b/includes/SearchPostgres.php @@ -28,7 +28,7 @@ */ class SearchPostgres extends SearchEngine { - function SearchPostgres( $db ) { + function __construct( $db ) { $this->db = $db; } @@ -218,8 +218,8 @@ class SearchPostgres extends SearchEngine { * @ingroup Search */ class PostgresSearchResult extends SearchResult { - function PostgresSearchResult( $row ) { - parent::SearchResult($row); + function __construct( $row ) { + parent::__construct($row); $this->score = $row->score; } function getScore() { @@ -231,7 +231,7 @@ class PostgresSearchResult extends SearchResult { * @ingroup Search */ class PostgresSearchResultSet extends SearchResultSet { - function PostgresSearchResultSet( $resultSet, $terms ) { + function __construct( $resultSet, $terms ) { $this->mResultSet = $resultSet; $this->mTerms = $terms; } -- 2.20.1