Do proper inheritance here instead of copy-paste of top level constructor.
[lhc/web/wiklou.git] / 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() {