mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix to include_dir to work on older versions of php (thanks Mark Loveley of Griffin)
git-svn-id: http://www.observium.org/svn/observer/trunk@1714 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -671,9 +671,13 @@ function isHexString($str)
|
||||
}
|
||||
|
||||
# Include all .inc.php files in $dir
|
||||
function include_dir($dir, $regex = "/\.inc\.php$/")
|
||||
function include_dir($dir, $regex)
|
||||
{
|
||||
global $device, $config;
|
||||
if ( $regex == "")
|
||||
{
|
||||
$regex = "/\.inc\.php$/";
|
||||
}
|
||||
|
||||
if ($handle = opendir($config['install_dir'] . '/' . $dir))
|
||||
{
|
||||
|
Reference in New Issue
Block a user