1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

[feature/postgresql-fulltext-search] fix formatting

adds proper spaces after control keywords and comment symbol

PHPBB3-9730
This commit is contained in:
Dhruv Goel 2012-06-26 01:27:14 +05:30
parent dfbd32ce24
commit bc699f66cf
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
{
$pgsql_version = explode(',', substr($db->sql_server_info(), 10));
$this->version = trim($pgsql_version[0]);
if(version_compare($this->version, '8.3', '>='))
if (version_compare($this->version, '8.3', '>='))
{
$this->tsearch_usable = true;
}
@ -752,7 +752,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
{
global $db, $config;
if($db->sql_layer != 'postgres')
if ($db->sql_layer != 'postgres')
{
$this->stats = array();
return;

View File

@ -596,7 +596,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
$u_search .= ($search_fields != 'all') ? '&sf=' . $search_fields : '';
$u_search .= ($return_chars != 300) ? '&ch=' . $return_chars : '';
//check if search backend supports phrase search or not
// Check if search backend supports phrase search or not
$l_phrase_search_disabled = '';
if (strpos(html_entity_decode($keywords), '"') !== false && isset($search->phrase_search))
{