From: Robert Stojnić Date: Wed, 25 Jun 2008 22:07:11 +0000 (+0000) Subject: Do proper inheritance here instead of copy-paste of top level constructor. X-Git-Tag: 1.31.0-rc.0~46888 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=346562de57d900b549d715e7f2404f3056f7f14c;p=lhc%2Fweb%2Fwiklou.git 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. --- 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() {