Commit 06bbbac3 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Allow dataroot language pack directories to have any name


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent a148ca29
......@@ -497,7 +497,7 @@ function language_get_searchpaths() {
$docrootpath = array(get_config('docroot'));
// Paths to language files in dataroot
$datarootpaths = (array)glob(get_config('dataroot') . 'langpacks/*.utf8', GLOB_MARK | GLOB_ONLYDIR);
$datarootpaths = (array)glob(get_config('dataroot') . 'langpacks/*', 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