1
0
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:
Cameron 2013-01-31 14:31:03 -08:00
parent 87e753bbbd
commit a44da92d7c

View File

@ -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']))