mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:35:13 +00:00
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...
This commit is contained in:
parent
5087d783b7
commit
d67c5a6ffd
1 changed files with 1 additions and 1 deletions
|
@ -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])) {
|
||||
|
|
Loading…
Reference in a new issue