summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorstilez <stilez@users.noreply.github.com>2017-05-25 05:11:37 +0100
committerGitHub <noreply@github.com>2017-05-25 05:11:37 +0100
commitd2d58d6ad1b32e0ccce094bfd247547f353e38ba (patch)
treed738689a9924475a72f177bd326d6ad048ed49fa /src
parent4711322b4a6ecedba6a4a11c1f7f04ef8427b46e (diff)
downloadpfsense-d2d58d6ad1b32e0ccce094bfd247547f353e38ba.zip
pfsense-d2d58d6ad1b32e0ccce094bfd247547f353e38ba.tar.gz
add comment
Diffstat (limited to 'src')
-rwxr-xr-xsrc/usr/local/www/diag_command.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/diag_command.php b/src/usr/local/www/diag_command.php
index 7876295..0d8242b 100755
--- a/src/usr/local/www/diag_command.php
+++ b/src/usr/local/www/diag_command.php
@@ -297,6 +297,7 @@ END_FILE;
exec("/usr/local/bin/php -s -d log_errors=off {$tmpfile}", $syntax_output);
// Lines 0, 2 and 3 are CSS wrapper for the syntax highlighted code which is at line 1 <br> separated.
$syntax_output = explode("<br />", $syntax_output[1]);
+ // Align line numbers right padded when building html
$chars = strlen(count($syntax_output)) + 1;
for ($lineno = 1; $lineno < count($syntax_output) - $lineno_correction; $lineno++) {
if ($lineno == $errline) {
OpenPOWER on IntegriCloud