mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	refactor: Use the Config class includes/discovery (#7299)
* refactor: use the Config class includes/discovery * fix issue with $config variable not accessible in include-dir.inc.php * improved whitespace * Tidy up discovery_by_ip
This commit is contained in:
		
				
					committed by
					
						
						Neil Lathwood
					
				
			
			
				
	
			
			
			
						parent
						
							9cafcb6280
						
					
				
				
					commit
					b18c41b1a9
				
			@@ -1,6 +1,8 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
if ($config['enable_pseudowires'] && $device['os_group'] == 'cisco') {
 | 
			
		||||
use LibreNMS\Config;
 | 
			
		||||
 | 
			
		||||
if (Config::get('enable_pseudowires') && $device['os_group'] == 'cisco') {
 | 
			
		||||
    unset($cpw_count);
 | 
			
		||||
    unset($cpw_exists);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user