1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Fixes #4755 - {LAN} shortcode - prioritize constants beginning with "LAN_"

This commit is contained in:
Cameron 2022-04-19 11:09:58 -07:00
parent 4d6a5ea310
commit 3f1d428660

View File

@ -9,14 +9,15 @@ function lan_shortcode($parm = '')
}
$lan = trim($parm);
if(defined($lan))
{
return constant($lan);
}
elseif(defined('LAN_'.$lan))
if(defined('LAN_'.$lan))
{
return constant('LAN_'.$lan);
}
elseif(defined($lan))
{
return constant($lan);
}
elseif(ADMIN)
{
return "<span class='alert alert-danger' style='padding:0'><strong>".$parm ."</strong> is undefined</span>"; // debug info