Commit 41b43027 authored by Ad Schellevis's avatar Ad Schellevis

fix for aliasses not shown / maybe flushed after save of new aliasses.

parent 774fa9f4
......@@ -30,7 +30,7 @@ function listtags()
{
/* The following items will be treated as arrays in config.xml */
$ret = array(
'acls', 'alias', 'aliases', 'aliasurl', 'allowedip', 'allowedhostname', 'authserver',
'acls', 'alias', 'aliasurl', 'allowedip', 'allowedhostname', 'authserver',
'bridged', 'build_port_path',
'ca', 'cacert', 'cert', 'crl', 'clone', 'config', 'container', 'columnitem',
'depends_on_package', 'disk', 'dnsserver', 'dnsupdate', 'domainoverrides', 'dyndns',
......@@ -51,7 +51,7 @@ function listtags()
'tab', 'timerange', 'tunnel',
'user',
'vip', 'virtual_server', 'vlan',
'winsserver', 'wolentry', 'widget', 'wol',
'winsserver', 'wolentry', 'widget',
);
return array_flip($ret);
......
......@@ -32,6 +32,10 @@ require_once("functions.inc");
require_once("filter.inc");
require_once("shaper.inc");
if (!is_array($config['aliases'])){
$config['aliases'] = array() ;
}
if (!is_array($config['aliases']['alias']))
$config['aliases']['alias'] = array();
$a_aliases = &$config['aliases']['alias'];
......
......@@ -28,6 +28,10 @@
require_once("guiconfig.inc");
if (!is_array($config['wol'])) {
$config['wol'] = array();
}
if (!is_array($config['wol']['wolentry'])) {
$config['wol']['wolentry'] = array();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment