From 3752616bb6317875708ed9cfc5296d784566c657 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sun, 28 May 2006 19:24:13 +0000 Subject: - making user_last_search a NULL column so MSSQL won't hate us - making ignore_words and synonyms optional for language packs git-svn-id: file:///svn/phpbb/trunk@5983 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/search/search.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/search/search.php b/phpBB/includes/search/search.php index 28f805bca5..ddf5ca9796 100755 --- a/phpBB/includes/search/search.php +++ b/phpBB/includes/search/search.php @@ -53,8 +53,11 @@ class search_backend $words = array(); - // include the file containing ignore words - include("{$user->lang_path}/search_ignore_words.$phpEx"); + if (file_exists("{$user->lang_path}/search_ignore_words.$phpEx")) + { + // include the file containing ignore words + include("{$user->lang_path}/search_ignore_words.$phpEx"); + } $this->ignore_words = $words; unset($words); @@ -72,8 +75,11 @@ class search_backend $synonyms = array(); - // include the file containing synonyms - include("{$user->lang_path}/search_synonyms.$phpEx"); + if (file_exists("{$user->lang_path}/search_synonyms.$phpEx")) + { + // include the file containing synonyms + include("{$user->lang_path}/search_synonyms.$phpEx"); + } $this->match_synonym = array_keys($synonyms); $this->replace_synonym = array_values($synonyms); -- cgit v1.2.1