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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user