mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 12:41:51 +02:00
Convert userclass constants within plugin prefs during plugin install
This commit is contained in:
parent
87e753bbbd
commit
a44da92d7c
@ -2050,6 +2050,12 @@ class e107plugin
|
||||
{
|
||||
$key = varset($tag['@attributes']['name']);
|
||||
$value = vartrue($tag['@value']);
|
||||
|
||||
if(substr($value,0,5) == "e_UC_") // Convert Userclass constants.
|
||||
{
|
||||
$value = constant($value);
|
||||
}
|
||||
|
||||
$remove = (varset($tag['@attributes']['deprecate']) == 'true') ? TRUE : FALSE;
|
||||
|
||||
if (varset($tag['@attributes']['value']))
|
||||
|
Loading…
x
Reference in New Issue
Block a user