mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3218 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -343,10 +343,9 @@ function print_percentage_bar($width, $height, $percent, $left_text, $left_colou
 | 
			
		||||
 | 
			
		||||
function generate_entity_link($type, $entity, $text = NULL, $graph_type=NULL)
 | 
			
		||||
{
 | 
			
		||||
  global $config;
 | 
			
		||||
  global $entity_cache;
 | 
			
		||||
  global $config, $entity_cache;
 | 
			
		||||
 | 
			
		||||
  if(is_numeric($entity))
 | 
			
		||||
  if (is_numeric($entity))
 | 
			
		||||
  {
 | 
			
		||||
    $entity = get_entity_by_id_cache($type, $entity);
 | 
			
		||||
  }
 | 
			
		||||
@@ -357,7 +356,7 @@ function generate_entity_link($type, $entity, $text = NULL, $graph_type=NULL)
 | 
			
		||||
      $link = generate_port_link($entity, $text, $graph_type);
 | 
			
		||||
      break;
 | 
			
		||||
    case "storage":
 | 
			
		||||
      if(empty($text)) { $text = $entity['storage_descr']; }
 | 
			
		||||
      if (empty($text)) { $text = $entity['storage_descr']; }
 | 
			
		||||
      $link = generate_link($text, array('page' => 'device', 'device' => $entity['device_id'], 'tab' => 'health', 'metric' => 'storage'));
 | 
			
		||||
      break;
 | 
			
		||||
    default:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user