diff options
author | Nils Adermann <naderman@naderman.de> | 2006-05-28 19:24:13 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2006-05-28 19:24:13 +0000 |
commit | 3752616bb6317875708ed9cfc5296d784566c657 (patch) | |
tree | 3d36fbb7cb2137c59358cc64d3debb08e8c4220f /phpBB/includes/search/search.php | |
parent | 19a36ed364ffdc4da784a253baa8aa2a8ac6845a (diff) | |
download | forums-3752616bb6317875708ed9cfc5296d784566c657.tar forums-3752616bb6317875708ed9cfc5296d784566c657.tar.gz forums-3752616bb6317875708ed9cfc5296d784566c657.tar.bz2 forums-3752616bb6317875708ed9cfc5296d784566c657.tar.xz forums-3752616bb6317875708ed9cfc5296d784566c657.zip |
- 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
Diffstat (limited to 'phpBB/includes/search/search.php')
-rwxr-xr-x | phpBB/includes/search/search.php | 14 |
1 files changed, 10 insertions, 4 deletions
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); |