mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Fixes #4755 - {LAN} shortcode - prioritize constants beginning with "LAN_"
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user