aboutsummaryrefslogtreecommitdiffstats
path: root/mod/help.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2014-03-15 21:54:10 +0100
committerChristian Vogeley <christian.vogeley@hotmail.de>2014-03-15 21:54:10 +0100
commit521b091779ddb2a4ca58c28af9312cb5bcf2dd9f (patch)
tree27d854c5b8668470a3005425e428b8c115550aad /mod/help.php
parentf0736fc955e69d4650f95dc937f26be222967199 (diff)
parent3cb179aff19d803b91261e410c50b36e4bae1246 (diff)
downloadvolse-hubzilla-521b091779ddb2a4ca58c28af9312cb5bcf2dd9f.tar.gz
volse-hubzilla-521b091779ddb2a4ca58c28af9312cb5bcf2dd9f.tar.bz2
volse-hubzilla-521b091779ddb2a4ca58c28af9312cb5bcf2dd9f.zip
merge
Diffstat (limited to 'mod/help.php')
-rw-r--r--mod/help.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/mod/help.php b/mod/help.php
index aa0ee8ae6..81ecd6ba9 100644
--- a/mod/help.php
+++ b/mod/help.php
@@ -76,14 +76,18 @@ function help_content(&$a) {
$text = preg_replace_callback("/#include (.*?)\;/ism", 'preg_callback_help_include', $text);
if($doctype === 'html')
- return $text;
+ $content = $text;
if($doctype === 'markdown')
- return Markdown($text);
+ $content = Markdown($text);
if($doctype === 'bbcode') {
require_once('include/bbcode.php');
- return bbcode($text);
+ $content = bbcode($text);
}
+ return replace_macros(get_markup_template("help.tpl"), array(
+ '$content' => $content
+ ));
+
}