Commit cb95bdf5 authored by Nigel McNie's avatar Nigel McNie
Browse files

(#3094) Ignore glob errors when searching for language directories.

parent d707859c
......@@ -425,7 +425,7 @@ function language_get_searchpaths() {
$docrootpath = array(get_config('docroot'));
// Paths to language files in dataroot
$datarootpaths = glob(get_config('dataroot') . 'langpacks/*.utf8', GLOB_MARK | GLOB_ONLYDIR);
$datarootpaths = (array)glob(get_config('dataroot') . 'langpacks/*.utf8', GLOB_MARK | GLOB_ONLYDIR);
// langpacksearchpaths configuration variable - for experts :)
$lpsearchpaths = (array)get_config('langpacksearchpaths');
......
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