1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

Merge of the language-specific custom path change Revision #r8782

git-svn-id: file:///svn/phpbb/trunk@8786 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2008-08-24 10:04:15 +00:00
parent 8174462e89
commit 589db44b56
11 changed files with 91 additions and 69 deletions

View File

@@ -49,10 +49,10 @@ class search_backend
$words = array();
if (file_exists("{$user->lang_path}/search_ignore_words." . PHP_EXT))
if (file_exists("{$user->lang_path}{$user->lang_name}/search_ignore_words." . PHP_EXT))
{
// include the file containing ignore words
include("{$user->lang_path}/search_ignore_words." . PHP_EXT);
include("{$user->lang_path}{$user->lang_name}/search_ignore_words." . PHP_EXT);
}
$this->ignore_words = $words;
@@ -71,10 +71,10 @@ class search_backend
$synonyms = array();
if (file_exists("{$user->lang_path}/search_synonyms." . PHP_EXT))
if (file_exists("{$user->lang_path}{$user->lang_name}/search_synonyms." . PHP_EXT))
{
// include the file containing synonyms
include("{$user->lang_path}/search_synonyms." . PHP_EXT);
include("{$user->lang_path}{$user->lang_name}/search_synonyms." . PHP_EXT);
}
$this->match_synonym = array_keys($synonyms);