Do proper inheritance here instead of copy-paste of top level constructor.
authorRobert Stojnić <rainman@users.mediawiki.org>
Wed, 25 Jun 2008 22:07:11 +0000 (22:07 +0000)
committerRobert Stojnić <rainman@users.mediawiki.org>
Wed, 25 Jun 2008 22:07:11 +0000 (22:07 +0000)
Fixes problem with missing search results on Postgres, thanks to pyroplasm on IRC for pointing it out and testing.

includes/SearchPostgres.php

index 02638bb..974e058 100644 (file)
@@ -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() {