getConfig();
echo '
';
}
public function getConfig()
{
global $g5;
$sql = "SELECT addon_config FROM {$g5['addons_config_table']} WHERE addon_name = '{$this->className}'";
$result = sql_fetch($sql);
if ($result && isset($result['addon_config'])) {
return json_decode($result['addon_config'], true) ?: [];
}
return [];
}
}