1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 16:33:00 +00:00

another fix in the page viewer

This commit is contained in:
Starbeamrainbowlabs 2015-05-24 21:05:45 +01:00
parent 2900c13ee2
commit 2326bc479e

View file

@ -1,7 +1,7 @@
<?php <?php
register_module([ register_module([
"name" => "Page viewer", "name" => "Page viewer",
"version" => "0.4", "version" => "0.6",
"author" => "Starbeamrainbowlabs", "author" => "Starbeamrainbowlabs",
"description" => "Allows you to view pages. You should include this one.", "description" => "Allows you to view pages. You should include this one.",
"id" => "page-view", "id" => "page-view",
@ -37,9 +37,9 @@ register_module([
$content .= "\n\t<!-- Took " . (microtime(true) - $slimdown_start) . " seconds to parse markdown -->\n"; $content .= "\n\t<!-- Took " . (microtime(true) - $slimdown_start) . " seconds to parse markdown -->\n";
if(isset($_GET["printable"]) and $_GET["printable"] === "yes") if(isset($_GET["printable"]) and $_GET["printable"] === "yes")
exit(page_renderer::render_minimal($title, $content, $minimal)); exit(page_renderer::render_minimal($title, $content));
else else
exit(page_renderer::render_main($title, $content, $minimal)); exit(page_renderer::render_main($title, $content));
}); });
} }
]); ]);