43 parent::__construct();
44 $this->caption = ucfirst($plugin) .
' – ' 46 $fn = $pth[
'folder'][
'plugins'] . $plugin .
'/config/metaconfig.php';
47 if (is_readable($fn)) {
50 $mcf = isset($plugin_mcf[$plugin]) ? $plugin_mcf[
$plugin] : array();
51 $this->filename = $pth[
'file'][
'plugin_config'];
52 $this->params = array(
'admin' =>
'plugin_config',
53 'action' =>
'plugin_save');
54 $this->redir =
'?&' . $plugin
55 .
'&admin=plugin_config&action=plugin_edit&xh_success=config';
56 $this->varName =
'plugin_cf';
58 foreach ($plugin_cf[$plugin] as $key => $val) {
59 list($cat, $name) = $this->splitKey($key);
60 $omcf = isset($mcf[$key])
63 $hint = isset($plugin_tx[$plugin][
"cf_$key"])
64 ? $plugin_tx[
$plugin][
"cf_$key"] : null;
65 $this->cfg[$cat][$name] = $this->option($omcf, $val, $hint);