mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
code and formatting cleanups/small fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@1771 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -701,7 +701,7 @@ function isHexString($str)
|
||||
# Include all .inc.php files in $dir
|
||||
function include_dir($dir, $regex = "")
|
||||
{
|
||||
global $device, $config;
|
||||
global $device, $config, $debug;
|
||||
if ( $regex == "")
|
||||
{
|
||||
$regex = "/\.inc\.php$/";
|
||||
@@ -713,6 +713,7 @@ function include_dir($dir, $regex = "")
|
||||
{
|
||||
if (filetype($config['install_dir'] . '/' . $dir . '/' . $file) == 'file' && preg_match($regex, $file))
|
||||
{
|
||||
if ($debug) { echo("Including: " . $config['install_dir'] . '/' . $dir . '/' . $file . "\n"); }
|
||||
include($config['install_dir'] . '/' . $dir . '/' . $file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user