mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Fix issues Scrutinizer says that I introduced
This commit is contained in:
@@ -637,12 +637,14 @@ function generate_ap_url($ap, $vars=array())
|
|||||||
|
|
||||||
function report_this($message)
|
function report_this($message)
|
||||||
{
|
{
|
||||||
return '<h2>'.$message.' Please <a href="'.$config['project_issues'].'">report this</a> to the developers.</h2>';
|
global $config;
|
||||||
|
return '<h2>'.$message.' Please <a href="'.$config['project_issues'].'">report this</a> to the '.$config['project_name'].' developers.</h2>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function report_this_text($message)
|
function report_this_text($message)
|
||||||
{
|
{
|
||||||
return $message.'\nPlease report this to the developers at '.$config['project_issues'].'\n';
|
global $config;
|
||||||
|
return $message.'\nPlease report this to the '.$config['project_name'].' developers at '.$config['project_issues'].'\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
# Find all the files in the given directory that match the pattern
|
# Find all the files in the given directory that match the pattern
|
||||||
@@ -650,6 +652,7 @@ function get_matching_files($dir, $match = "/\.php$/")
|
|||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
$list = array();
|
||||||
if ($handle = opendir($dir))
|
if ($handle = opendir($dir))
|
||||||
{
|
{
|
||||||
while (false !== ($file = readdir($handle)))
|
while (false !== ($file = readdir($handle)))
|
||||||
|
|||||||
Reference in New Issue
Block a user