r36660 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r36659
|
r36660
|
r36661
>
Date:
22:07, 25 June 2008
Author:
rainman
Status:
old
Tags:
Comment:
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.
Modified paths:
/trunk/phase3/includes/SearchPostgres.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/SearchPostgres.php
—
—
@@ -219,7 +219,7 @@
220
220
*/
221
221
class PostgresSearchResult extends SearchResult {
222
222
function PostgresSearchResult( $row ) {
223
- $this->mTitle = Title::makeTitle( $row->page_namespace, $row->page_title );
223
+ parent::SearchResult($row);
224
224
$this->score = $row->score;
225
225
}
226
226
function getScore() {
Follow-up revisions
Revision
Commit summary
Author
Date
r36874
Cleanup for
r36660
: use PHP 5 __construct() name for constructors to make thi...
brion
02:02, 2 July 2008
Status & tagging log
15:28, 12 September 2011
Meno25
(
talk
|
contribs
)
changed the
status
of r36660
[
removed:
ok
added:
old]