mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove all unneeded if($debug)-statements and replace them with d_echo in the rest of the directories...
This commit is contained in:
@@ -33,15 +33,9 @@ function format_number_short($number, $sf) {
|
||||
}
|
||||
|
||||
function external_exec($command) {
|
||||
global $debug;
|
||||
|
||||
if ($debug) {
|
||||
echo($command."\n");
|
||||
}
|
||||
d_echo($command."\n");
|
||||
$output = shell_exec($command);
|
||||
if ($debug) {
|
||||
echo($output."\n");
|
||||
}
|
||||
d_echo($output."\n");
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
Reference in New Issue
Block a user