MDL-22015 moving CFG settings out from string_manager code to constructor parameters - this should help with testing in future and allows easier tweaking in advanced deployments

This commit is contained in:
Petr Skoda
2010-05-22 22:31:19 +00:00
parent 1e06adb47c
commit 3fdcc0a0df
3 changed files with 33 additions and 21 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ function auth_get_plugin_title($authtype) {
function get_list_of_languages($refreshcache=false, $returnall=false) {
debugging('get_list_of_languages() is deprecated, please use get_string_manager()->get_list_of_translations() instead.');
if ($refreshcache) {
// TODO: reset lang cache
get_string_manager()->reset_caches();
}
return get_string_manager()->get_list_of_translations($returnall);
}