From 346562de57d900b549d715e7f2404f3056f7f14c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Robert=20Stojni=C4=87?= Date: Wed, 25 Jun 2008 22:07:11 +0000 Subject: [PATCH] Do proper inheritance here instead of copy-paste of top level constructor. Fixes problem with missing search results on Postgres, thanks to pyroplasm on IRC for pointing it out and testing. --- includes/SearchPostgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SearchPostgres.php b/includes/SearchPostgres.php index 02638bb5c8..974e05857f 100644 --- a/includes/SearchPostgres.php +++ b/includes/SearchPostgres.php @@ -219,7 +219,7 @@ class SearchPostgres extends SearchEngine { */ class PostgresSearchResult extends SearchResult { function PostgresSearchResult( $row ) { - $this->mTitle = Title::makeTitle( $row->page_namespace, $row->page_title ); + parent::SearchResult($row); $this->score = $row->score; } function getScore() { -- 2.20.1