mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Fixes #4755 - {LAN} shortcode - prioritize constants beginning with "LAN_"
This commit is contained in:
parent
4d6a5ea310
commit
3f1d428660
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user