mirror of
https://github.com/e107inc/e107.git
synced 2025-07-09 17:16:20 +02:00
Convert userclass constants within plugin prefs during plugin install
This commit is contained in:
@ -2050,6 +2050,12 @@ class e107plugin
|
|||||||
{
|
{
|
||||||
$key = varset($tag['@attributes']['name']);
|
$key = varset($tag['@attributes']['name']);
|
||||||
$value = vartrue($tag['@value']);
|
$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;
|
$remove = (varset($tag['@attributes']['deprecate']) == 'true') ? TRUE : FALSE;
|
||||||
|
|
||||||
if (varset($tag['@attributes']['value']))
|
if (varset($tag['@attributes']['value']))
|
||||||
|
Reference in New Issue
Block a user