phpBB

Code Changes

File: includes/search/search.php

  Unmodified   Added   Modified   Removed
Line 52Line 52

$words = array();



$words = array();


			if (file_exists("{$user->lang_path}/search_ignore_words.$phpEx"))

			if (file_exists("{$user->lang_path}{$user->lang_name}/search_ignore_words.$phpEx"))

			{
// include the file containing ignore words

			{
// include the file containing ignore words

				include("{$user->lang_path}/search_ignore_words.$phpEx");

				include("{$user->lang_path}{$user->lang_name}/search_ignore_words.$phpEx");

			}

$this->ignore_words = $words;

			}

$this->ignore_words = $words;

Line 74Line 74

$synonyms = array();



$synonyms = array();


			if (file_exists("{$user->lang_path}/search_synonyms.$phpEx"))

			if (file_exists("{$user->lang_path}{$user->lang_name}/search_synonyms.$phpEx"))

			{
// include the file containing synonyms

			{
// include the file containing synonyms

				include("{$user->lang_path}/search_synonyms.$phpEx");

				include("{$user->lang_path}{$user->lang_name}/search_synonyms.$phpEx");

			}

$this->match_synonym = array_keys($synonyms);

			}

$this->match_synonym = array_keys($synonyms);

Line 295Line 295
			$sql_where = '';
foreach ($authors as $author)
{

			$sql_where = '';
foreach ($authors as $author)
{

				$sql_where .= (($sql_where) ? ' OR ' : '') . 'search_authors LIKE \'% ' . (int) $author . ' %\'';

				$sql_where .= (($sql_where) ? ' OR ' : '') . 'search_authors ' . $db->sql_like_expression($db->any_char . ' ' . (int) $author . ' ' . $db->any_char);

			}

$sql = 'SELECT search_key

			}

$sql = 'SELECT search_key