if ($active_type == 'report' and $active_plugin == $plugin ) {
$active = $url;
}
- $reportnames[$url] = get_string('modulename', 'gradereport_'.$plugin, NULL, $CFG->dirroot.'/grade/report/'.$plugin.'lang/');
+ $reportnames[$url] = get_string('modulename', 'gradereport_'.$plugin, NULL, $CFG->dirroot.'/grade/report/'.$plugin.'/lang/');
}
asort($reportnames);
}
if ($active_type == 'import' and $active_plugin == $plugin ) {
$active = $url;
}
- $importnames[$url] = get_string('modulename', 'gradeimport_'.$plugin, NULL, $CFG->dirroot.'/grade/import/'.$plugin.'lang/');
+ $importnames[$url] = get_string('modulename', 'gradeimport_'.$plugin, NULL, $CFG->dirroot.'/grade/import/'.$plugin.'/lang/');
}
asort($importnames);
}
if ($active_type == 'export' and $active_plugin == $plugin ) {
$active = $url;
}
- $exportnames[$url] = get_string('modulename', 'gradeexport_'.$plugin, NULL, $CFG->dirroot.'/grade/export/'.$plugin.'lang/');
+ $exportnames[$url] = get_string('modulename', 'gradeexport_'.$plugin, NULL, $CFG->dirroot.'/grade/export/'.$plugin.'/lang/');
}
asort($exportnames);
}
if (isset($CFG->running_installer)) {
$module = 'installer';
$filetocheck = 'installer.php';
- $locations += array( $CFG->dirroot.'/install/lang/', $CFG->dataroot.'/lang/', $CFG->dirroot.'/lang/' );
+ $locations[] = $CFG->dirroot.'/install/lang/';
+ $locations[] = $CFG->dataroot.'/lang/';
+ $locations[] = $CFG->dirroot.'/lang/';
$defaultlang = 'en_utf8';
} else {
- $locations += array( $CFG->dataroot.'/lang/', $CFG->dirroot.'/lang/' );
+ $locations[] = $CFG->dataroot.'/lang/';
+ $locations[] = $CFG->dirroot.'/lang/';
}
/// Add extra places to look for strings for particular plugin types.
eval($result);
return $resultstring;
}
- }
+ }
}
/// If the preferred language was English (utf8) we can abort now