com web/php: Update include/layout.inc: include/layout.inc
| From: | Sara Golemon | Date: | Wed, 25 Nov 2020 20:28:13 +0000 |
| Subject: | com web/php: Update include/layout.inc: include/layout.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28857@lists.php.net to get a copy of this message | ||
Commit: bf8ae9d5a3762d64b8362b8015fa52b3d62b954b
Author: Roman Pronskiy <root@pronskiy.com> Wed, 25 Nov 2020 16:33:50 +0200
Committer: Sara Golemon <pollita@php.net> Wed, 25 Nov 2020 20:28:13 +0000
Parents: ddaa6d358b42df298c03e60d9bd3745f09697b88
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=bf8ae9d5a3762d64b8362b8015fa52b3d62b954b
Log:
Update include/layout.inc
Co-authored-by: Gabriel Caruso <carusogabriel34@gmail.com>
Changed paths:
M include/layout.inc
Diff:
diff --git a/include/layout.inc b/include/layout.inc
index 490587905..4c82a9a08 100644
--- a/include/layout.inc
+++ b/include/layout.inc
@@ -54,7 +54,8 @@ function highlight_php_trimmed($code, $return = false)
$highlighted_code = preg_replace("/\<\?php(\<br \/\>)+/", '',
$highlighted_code, 1);
if ($return) { return $highlighted_code; }
- else { echo $highlighted_code; }
+
+ echo $highlighted_code;
}
// Stats pages still need this