mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Split is removed in PHP7, replace with explode as none were using it as a regex.
Also fix two array keys without quotes in include/syslog.php Fixes #2205
This commit is contained in:
@@ -42,7 +42,7 @@ if (isset($total) && $total === true) {
|
||||
foreach ($files as $id => $file) {
|
||||
$hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file);
|
||||
$hostname = eregi_replace('.rrd', '', $hostname);
|
||||
list($host, $port) = split('_', $hostname, 2);
|
||||
list($host, $port) = explode('_', $hostname, 2);
|
||||
$graphs = array(
|
||||
'shoutcast_bits' => 'Traffic Statistics - '.$host.' (Port: '.$port.')',
|
||||
'shoutcast_stats' => 'Shoutcast Statistics - '.$host.' (Port: '.$port.')',
|
||||
|
||||
Reference in New Issue
Block a user