mirror of
https://github.com/opnsense/core.git
synced 2026-02-18 18:18:13 -05:00
reporting: adapt config_read_array() in rrd_import()
Note to self: can find more of these using
% git grep 'foreach..$config\['
This commit is contained in:
parent
d97bebb0cc
commit
18c3f1187f
1 changed files with 1 additions and 3 deletions
|
|
@ -49,9 +49,7 @@ function rrd_export()
|
|||
|
||||
function rrd_import()
|
||||
{
|
||||
global $config;
|
||||
|
||||
foreach ($config['rrddata']['rrddatafile'] as $rrd) {
|
||||
foreach (config_read_array('rrddata', 'rrddatafile', false) as $rrd) {
|
||||
$rrd_file = "/var/db/rrd/" . basename($rrd['filename']);
|
||||
if (!empty($rrd['xmldata'])) {
|
||||
$xml_file = preg_replace('/\.rrd$/', ".xml", $rrd_file);
|
||||
|
|
|
|||
Loading…
Reference in a new issue