diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-05-16 20:58:53 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-05-16 20:58:53 +0000 |
commit | cecb985bee3bdd252e1b8dc0bd500b37cd52be01 (patch) | |
tree | 17266aa237742640aabee7856f0202317a45d540 /includes/SearchTsearch2.php | |
parent | 0bac06c301f2a83edb0236e4c2434da16848d549 (diff) |
Aktualisierung auf MediaWiki 1.10.0
Plugins angepasst und verbessert
kleine Korrekturen am Design
Diffstat (limited to 'includes/SearchTsearch2.php')
-rw-r--r-- | includes/SearchTsearch2.php | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/includes/SearchTsearch2.php b/includes/SearchTsearch2.php index 1fca9899..b504f034 100644 --- a/includes/SearchTsearch2.php +++ b/includes/SearchTsearch2.php @@ -19,14 +19,12 @@ /** * Search engine hook for PostgreSQL / Tsearch2 - * @package MediaWiki - * @subpackage Search + * @addtogroup Search */ /** * @todo document - * @package MediaWiki - * @subpackage Search + * @addtogroup Search */ class SearchTsearch2 extends SearchEngine { var $strictMatching = false; @@ -97,7 +95,7 @@ class SearchTsearch2 extends SearchEngine { } function update( $id, $title, $text ) { - $dbw=& wfGetDB(DB_MASTER); + $dbw = wfGetDB(DB_MASTER); $searchindex = $dbw->tableName( 'searchindex' ); $sql = "DELETE FROM $searchindex WHERE si_page={$id}"; $dbw->query($sql,"SearchTsearch2:update"); @@ -110,13 +108,13 @@ class SearchTsearch2 extends SearchEngine { } function updateTitle($id,$title) { - $dbw=& wfGetDB(DB_MASTER); - $searchindex = $dbw->tableName( 'searchindex' ); - $sql = "UPDATE $searchindex SET si_title=to_tsvector('" . - $dbw->strencode( $title ) . - "') WHERE si_page={$id}"; + $dbw = wfGetDB(DB_MASTER); + $searchindex = $dbw->tableName( 'searchindex' ); + $sql = "UPDATE $searchindex SET si_title=to_tsvector('" . + $dbw->strencode( $title ) . + "') WHERE si_page={$id}"; - $dbw->query( $sql, "SearchMySQL4::updateTitle" ); + $dbw->query( $sql, "SearchMySQL4::updateTitle" ); } } |