From 01f67a937743d8d2ed20816bea0ea472c877a66d Mon Sep 17 00:00:00 2001 From: DiscuzX <153619335@qq.com> Date: Sun, 28 Nov 2021 10:22:36 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dshowmessage=E7=AD=89=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=9C=A8=E4=B8=8D=E4=BD=BF=E7=94=A8=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E5=8C=85=E6=97=B6=EF=BC=8C=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=86=92=E5=8F=B7=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/function_core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/source/function/function_core.php b/upload/source/function/function_core.php index 9b74b59e6..b1c6ad6ec 100644 --- a/upload/source/function/function_core.php +++ b/upload/source/function/function_core.php @@ -468,7 +468,7 @@ function lang($file, $langvar = null, $vars = array(), $default = null) { $key = &$file; } $return = $langvar !== null ? (isset($returnvalue[$key][$langvar]) ? $returnvalue[$key][$langvar] : null) : $returnvalue[$key]; - $return = $return === null ? ($default !== null ? $default : $langvar) : $return; + $return = $return === null ? ($default !== null ? $default : ($path != 'plugin' ? '' : $file . ':') . $langvar) : $return; $searchs = $replaces = array(); if($vars && is_array($vars)) { foreach($vars as $k => $v) { -- Gitee