Skip to content

Commit

Permalink
fix(developers): replaced get_language with get_current_language
Browse files Browse the repository at this point in the history
fixes #7252
  • Loading branch information
jdalsem committed Apr 12, 2016
1 parent c7c5779 commit b6bcc57
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mod/developers/start.php
Expand Up @@ -110,16 +110,16 @@ function developers_setup_menu() {
* Adds debug info to all translatable strings.
*/
function developers_decorate_all_translations() {
$language = get_language();
$language = get_current_language();
_developers_decorate_translations($language);
_developers_decorate_translations('en');
}

/**
* Appends " ($key)" to all strings for the given language.
*
*
* This function checks if the suffix has already been added so it is idempotent
*
*
* @param string $language Language code like "en"
*/
function _developers_decorate_translations($language) {
Expand All @@ -135,11 +135,11 @@ function _developers_decorate_translations($language) {

/**
* Clear all the strings so the raw descriptor strings are displayed
*
*
* @deprecated Superceded by developers_decorate_all_translations
*/
function developers_clear_strings() {
$language = get_language();
$language = get_current_language();
$GLOBALS['_ELGG']->translations[$language] = array();
$GLOBALS['_ELGG']->translations['en'] = array();
}
Expand Down

0 comments on commit b6bcc57

Please sign in to comment.