aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/languages.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/languages.php')
-rw-r--r--engine/lib/languages.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/languages.php b/engine/lib/languages.php
index 16169282d..7607ea3bf 100644
--- a/engine/lib/languages.php
+++ b/engine/lib/languages.php
@@ -64,7 +64,7 @@ function get_current_language() {
function get_language() {
global $CONFIG;
- $user = get_loggedin_user();
+ $user = elgg_get_logged_in_user_entity();
$language = false;
if (($user) && ($user->language)) {
@@ -230,7 +230,7 @@ function get_installed_translations() {
foreach ($CONFIG->translations as $k => $v) {
$installed[$k] = elgg_echo($k, array(), $k);
- if (isadminloggedin()) {
+ if (elgg_is_admin_logged_in()) {
$completeness = get_language_completeness($k);
if (($completeness < 100) && ($k != 'en')) {
$installed[$k] .= " (" . $completeness . "% " . elgg_echo('complete') . ")";
@@ -301,4 +301,4 @@ function get_missing_language_keys($language) {
return false;
}
-register_translations(dirname(dirname(dirname(__FILE__))) . "/languages/"); \ No newline at end of file
+register_translations(dirname(dirname(dirname(__FILE__))) . "/languages/");