Remove all unneeded if($debug)-statements and replace them with d_echo in the rest of the directories...

This commit is contained in:
Mark Schouten
2015-08-20 16:06:44 +02:00
parent 677a4f3f5f
commit 4792879ce5
10 changed files with 22 additions and 59 deletions

View File

@@ -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;
}