aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2014-11-30 00:34:24 +0000
committerThomas Willingham <beardyunixer@beardyunixer.com>2014-11-30 00:36:30 +0000
commitd67c5a6ffd134602084a6dcb37b316bf768bf715 (patch)
tree0abb09f32ef9de5605803f830f2197c9d3ca2506 /mod
parent5087d783b70a34f1db62a61d4a8b6e39edd444ed (diff)
downloadvolse-hubzilla-d67c5a6ffd134602084a6dcb37b316bf768bf715.tar.gz
volse-hubzilla-d67c5a6ffd134602084a6dcb37b316bf768bf715.tar.bz2
volse-hubzilla-d67c5a6ffd134602084a6dcb37b316bf768bf715.zip
Handle included txt files (ie, install doco) as BBCode, otherwise it strips all
white space. Was going to use Markdown, but lots of not-markdown gets parsed then, so...
Diffstat (limited to 'mod')
-rw-r--r--mod/help.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/help.php b/mod/help.php
index 4823f1c07..a3dafcc9b 100644
--- a/mod/help.php
+++ b/mod/help.php
@@ -98,7 +98,7 @@ function preg_callback_help_include($matches) {
if($matches[1]) {
$include = str_replace($matches[0],load_doc_file($matches[1]),$matches[0]);
- if(preg_match('/\.bb$/', $matches[1])) {
+ if(preg_match('/\.bb$/', $matches[1]) || preg_match('/\.txt$/', $matches[1])) {
require_once('include/bbcode.php');
$include = bbcode($include);
} elseif(preg_match('/\.md$/', $matches[1])) {