Commit bc946763 authored by Penny Leach's avatar Penny Leach

removed some debugging in get_string

parent 542da766
......@@ -109,13 +109,10 @@ function get_string($identifier,$section) {
}
}
print_object($locations);
// First check all the normal locations for the string in the current language
foreach ($locations as $location) {
//if local directory not found, or particular string does not exist in local direcotry
$langfile = $location.$lang.'/'.$section.'.php';
echo $langfile;
if (file_exists($langfile)) {
if ($result = get_string_from_file($identifier, $langfile)) {
return format_langstring($result,$variables);
......
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