mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
unify $os_group and $os_type into $config['os']
git-svn-id: http://www.observium.org/svn/observer/trunk@1264 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -42,12 +42,11 @@ if($_GET['debug']) {
|
||||
$graphfile = $config['temp_dir'] . "/" . strgen() . ".png";
|
||||
|
||||
$os = gethostosbyid($device_id);
|
||||
$os_lower = strtolower($os);
|
||||
if($os_groups[$os_lower]) {$os_group = $os_groups[$os_lower];}
|
||||
if($config['os'][$os]['group']) {$os_group = $config['os'][$os]['group'];}
|
||||
|
||||
if(is_file($config['install_dir'] . "/html/includes/graphs/".$type."_".$os_lower.".inc.php")) {
|
||||
if(is_file($config['install_dir'] . "/html/includes/graphs/".$type."_".$os.".inc.php")) {
|
||||
/// Type + OS Specific
|
||||
include($config['install_dir'] . "/html/includes/graphs/".$type."_".$os_lower.".inc.php");
|
||||
include($config['install_dir'] . "/html/includes/graphs/".$type."_".$os.".inc.php");
|
||||
}elseif($os_group && is_file($config['install_dir'] . "/html/includes/graphs/".$type."_".$os_group.".inc.php")) {
|
||||
/// Type + OS Group Specific
|
||||
include($config['install_dir'] . "/html/includes/graphs/".$type."_".$os_group.".inc.php");
|
||||
|
Reference in New Issue
Block a user