Commit 42bc82ed authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent warnings on just about every page caused by not having langpacksearchpaths set.

parent 96f32015
...@@ -405,9 +405,10 @@ function language_get_searchpaths() { ...@@ -405,9 +405,10 @@ function language_get_searchpaths() {
if (!$searchpaths) { if (!$searchpaths) {
$searchpaths = array(get_config('docroot')); $searchpaths = array(get_config('docroot'));
$langpacksearchpaths = get_config('langpacksearchpaths'); if ($langpacksearchpaths = get_config('langpacksearchpaths')) {
foreach ($langpacksearchpaths as $path) { foreach ($langpacksearchpaths as $path) {
$searchpaths[] = (substr($path, -1) == '/') ? $path : "$path/"; $searchpaths[] = (substr($path, -1) == '/') ? $path : "$path/";
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment