diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /includes/search/SearchSqlite.php | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'includes/search/SearchSqlite.php')
-rw-r--r-- | includes/search/SearchSqlite.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/includes/search/SearchSqlite.php b/includes/search/SearchSqlite.php index 6accc31b..cd59eea9 100644 --- a/includes/search/SearchSqlite.php +++ b/includes/search/SearchSqlite.php @@ -26,6 +26,12 @@ * @ingroup Search */ class SearchSqlite extends SearchEngine { + + /** + * @var DatabaseSqlite + */ + protected $db; + /** * Creates an instance of this class * @param $db DatabaseSqlite: database object @@ -45,6 +51,8 @@ class SearchSqlite extends SearchEngine { /** * Parse the user's query and transform it into an SQL fragment which will * become part of a WHERE clause + * + * @return string */ function parseQuery( $filteredText, $fulltext ) { global $wgContLang; @@ -66,7 +74,9 @@ class SearchSqlite extends SearchEngine { $quote = '"'; } - if( $searchon !== '' ) $searchon .= ' '; + if( $searchon !== '' ) { + $searchon .= ' '; + } // Some languages such as Serbian store the input form in the search index, // so we may need to search for matches in multiple writing system variants. |