1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 17:23:00 +00:00

[parser] Simplify code by removing if statement

This commit is contained in:
Starbeamrainbowlabs 2019-01-05 16:23:12 +00:00
parent b350d5a32e
commit 4bf7881e5c
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -12,10 +12,7 @@ register_module([
$parser->setInternalLinkBase("?page=%s"); $parser->setInternalLinkBase("?page=%s");
add_parser("parsedown", function($source) use ($parser) { add_parser("parsedown", function($source) use ($parser) {
global $settings; global $settings;
if($settings->clean_raw_html) $parser->setMarkupEscaped($settings->clean_raw_html);
$parser->setMarkupEscaped(true);
else
$parser->setMarkupEscaped(false);
$result = $parser->text($source); $result = $parser->text($source);
return $result; return $result;