mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Remove all unneeded if($debug)-statements and replace them with d_echo in the rest of the directories...
This commit is contained in:
+2
-8
@@ -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