From: Tobias Diekershoff Date: Wed, 9 Aug 2017 17:19:42 +0000 (+0200) Subject: some simplification X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=147bfb05761d37eb7c8292b80ce4d22eefaee9a6;p=friendica.git some simplification --- diff --git a/library/markdown.php b/library/markdown.php index bf7ec4095b..8def53fcbd 100644 --- a/library/markdown.php +++ b/library/markdown.php @@ -29,11 +29,7 @@ function Markdown($text, $hardwrap = true) { $stamp1 = microtime(true); $MarkdownParser = new MarkdownExtra(); - if ($hardwrap) { - $MarkdownParser->hard_wrap = true; - } else { - $MarkdownParser->hard_wrap = false; - } + $MarkdownParser->hard_wrap = $hardwrap; $html = $MarkdownParser->transform($text); $a->save_timestamp($stamp1, "parser");