Merge pull request #254 from w-huber/2.2

Bug: There is no function self::get_reading_locale(), use self::get_current_locale()
This commit is contained in:
Damian Mooyman 2016-11-16 13:04:21 +13:00 committed by GitHub
commit 6f0da00776
1 changed files with 1 additions and 1 deletions

View File

@ -1752,7 +1752,7 @@ class Translatable extends DataExtension implements PermissionProvider {
* @deprecated 2.4 Use get_reading_locale()
*/
static function get_reading_lang() {
return i18n::get_lang_from_locale(self::get_reading_locale());
return i18n::get_lang_from_locale(self::get_current_locale());
}
/**