Do not show script source when running from CLI

This commit is contained in:
troosan 2018-01-03 17:16:19 +01:00 committed by GitHub
parent 35aa6d6291
commit 4a530d1d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -84,11 +84,6 @@ function write($phpWord, $filename, $writers)
}
$result .= getEndingNotes($writers);
$result .= '<pre><code>';
if (file_exists($filename . '.php')) {
$result .= highlight_file($filename . '.php', true);
}
$result .= '</code></pre>';
return $result;
}
@ -127,6 +122,12 @@ function getEndingNotes($writers)
}
}
$result .= '</p>';
$result .= '<pre>';
if (file_exists($filename . '.php')) {
$result .= highlight_file($filename . '.php', true);
}
$result .= '</pre>';
}
}