From cb053afc4741bc44aacab8bf85ac5f921ef60a2f Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Tue, 25 Apr 2006 19:20:01 +0000 Subject: Rename some of the config variables to eliminate issues caused by them containing phpbb_ git-svn-id: file:///svn/phpbb/trunk@5845 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/search/fulltext_phpbb.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'phpBB/includes/search') diff --git a/phpBB/includes/search/fulltext_phpbb.php b/phpBB/includes/search/fulltext_phpbb.php index b01e70621b..6b6ef40096 100644 --- a/phpBB/includes/search/fulltext_phpbb.php +++ b/phpBB/includes/search/fulltext_phpbb.php @@ -34,7 +34,7 @@ class fulltext_phpbb extends search_backend { global $config; - $this->word_length = array('min' => $config['fulltext_phpbb_min_search_chars'], 'max' => $config['fulltext_phpbb_max_search_chars']); + $this->word_length = array('min' => $config['fulltext_min_search_chars'], 'max' => $config['fulltext_max_search_chars']); $error = false; } @@ -101,7 +101,7 @@ class fulltext_phpbb extends search_backend // check word length $clean_len = strlen(str_replace('*', '', $word)); - if (($clean_len < $config['fulltext_phpbb_min_search_chars']) || ($clean_len > $config['fulltext_phpbb_max_search_chars'])) + if (($clean_len < $config['fulltext_min_search_chars']) || ($clean_len > $config['fulltext_max_search_chars'])) { if ($prefixed) { @@ -206,7 +206,7 @@ class fulltext_phpbb extends search_backend for ($i = 0, $n = sizeof($text); $i < $n; $i++) { $text[$i] = trim($text[$i]); - if (strlen($text[$i]) < $config['fulltext_phpbb_min_search_chars'] || strlen($text[$i]) > $config['fulltext_phpbb_max_search_chars']) + if (strlen($text[$i]) < $config['fulltext_min_search_chars'] || strlen($text[$i]) > $config['fulltext_max_search_chars']) { unset($text[$i]); } @@ -724,7 +724,7 @@ class fulltext_phpbb extends search_backend // Is the fulltext indexer disabled? If yes then we need not // carry on ... it's okay ... I know when I'm not wanted boo hoo - if (!$config['fulltext_phpbb_load_search_upd']) + if (!$config['fulltext_load_search_upd']) { return; } @@ -894,7 +894,7 @@ class fulltext_phpbb extends search_backend // Is the fulltext indexer disabled? If yes then we need not // carry on ... it's okay ... I know when I'm not wanted boo hoo - if (!$config['fulltext_phpbb_load_search_upd']) + if (!$config['fulltext_load_search_upd']) { return; } @@ -1034,23 +1034,23 @@ class fulltext_phpbb extends search_backend $tpl = '
-

' . $user->lang['YES_SEARCH_UPDATE_EXPLAIN'] . '
-
 ' . $user->lang['YES'] . '   ' . $user->lang['NO'] . '
+

' . $user->lang['YES_SEARCH_UPDATE_EXPLAIN'] . '
+
 ' . $user->lang['YES'] . '   ' . $user->lang['NO'] . '
-

' . $user->lang['MIN_SEARCH_CHARS_EXPLAIN'] . '
-
+

' . $user->lang['MIN_SEARCH_CHARS_EXPLAIN'] . '
+
-

' . $user->lang['MAX_SEARCH_CHARS_EXPLAIN'] . '
-
+

' . $user->lang['MAX_SEARCH_CHARS_EXPLAIN'] . '
+
'; // These are fields required in the config table return array( 'tpl' => $tpl, - 'config' => array('fulltext_phpbb_load_search_upd' => 'bool', 'fulltext_phpbb_min_search_chars' => 'integer', 'fulltext_phpbb_max_search_chars' => 'integer') + 'config' => array('fulltext_load_search_upd' => 'bool', 'fulltext_min_search_chars' => 'integer', 'fulltext_max_search_chars' => 'integer') ); } } -- cgit v1.2.1