From 00fc2293cd38b03788f88b928581d12921548125 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 6 Oct 2022 18:34:33 +0800 Subject: [PATCH] get_user_row() use nexus_trans() --- include/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/functions.php b/include/functions.php index 89052420..df41c9eb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3734,7 +3734,6 @@ create_tooltip_container($torrent_tooltip, 500); function get_username($id, $big = false, $link = true, $bold = true, $target = false, $bracket = false, $withtitle = false, $link_ext = "", $underline = false) { static $usernameArray = array(); - global $lang_functions; $id = (int)$id; if (func_num_args() == 1 && isset($usernameArray[$id])) { //One argument=is default display of username. Get it directly from static array if available @@ -3813,7 +3812,7 @@ function get_username($id, $big = false, $link = true, $bold = true, $target = f } else { - $username = "".$lang_functions['text_orphaned'].""; + $username = "".nexus_trans('nexus.user_not_exists').""; $username = "" . ( $bracket == true ? "(" . $username . ")" : $username) . ""; } if (func_num_args() == 1) { //One argument=is default display of username, save it in static array