aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-08-23 17:20:55 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-08-23 17:20:55 +0000
commitd7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1 (patch)
tree668d08c9850973ec92419bf8f2cb23d719a4dce5 /phpBB/includes/search
parent6c763cd8b65c1b63d57fb0f176d2c98a44076df1 (diff)
downloadforums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.tar
forums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.tar.gz
forums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.tar.bz2
forums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.tar.xz
forums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.zip
The same way we allow defining a custom template/style path we now allow this for languages too.
This will allow applications to define their own language folder for certain parts for example. Callable by $user->set_custom_lang_path({new_path}) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8782 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search')
-rw-r--r--phpBB/includes/search/search.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/search/search.php b/phpBB/includes/search/search.php
index 32d7ed595f..2f20d11495 100644
--- a/phpBB/includes/search/search.php
+++ b/phpBB/includes/search/search.php
@@ -52,10 +52,10 @@ class search_backend
$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("{$user->lang_path}/search_ignore_words.$phpEx");
+ include("{$user->lang_path}{$user->lang_name}/search_ignore_words.$phpEx");
}
$this->ignore_words = $words;
@@ -74,10 +74,10 @@ class search_backend
$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("{$user->lang_path}/search_synonyms.$phpEx");
+ include("{$user->lang_path}{$user->lang_name}/search_synonyms.$phpEx");
}
$this->match_synonym = array_keys($synonyms);