MDL-22015 deprecated get_list_of_currencies() method - improved string_manager encapsulation

This commit is contained in:
Petr Skoda
2010-04-14 14:04:21 +00:00
parent f6907ba954
commit 97b7d149b6
4 changed files with 53 additions and 43 deletions
+12
View File
@@ -48,12 +48,24 @@ function auth_get_plugin_title($authtype) {
* @return array An associative array with contents in the form of LanguageCode => LanguageName
*/
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
}
return get_string_manager()->get_list_of_translations($returnall);
}
/**
* Returns a list of currencies in the current language
* @deprecated
* @return array
*/
function get_list_of_currencies() {
debugging('get_list_of_currencies() is deprecated, please use get_string_manager()->get_list_of_currencies() instead.');
return get_string_manager()->get_list_of_currencies();
}
/**
* @deprecated
*/