aboutsummaryrefslogtreecommitdiffstats
path: root/include/help.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-19 16:06:49 -0800
committerzotlabs <mike@macgirvin.com>2016-12-19 16:06:49 -0800
commit231b70b987bb76a27cc8c4a36b128b4fef2178ce (patch)
tree3b22d937f34ef66acedaabc2f6366bbcbc0ada37 /include/help.php
parent1798ebd39524354a6955e871ce231c908f5bd0cc (diff)
downloadvolse-hubzilla-231b70b987bb76a27cc8c4a36b128b4fef2178ce.tar.gz
volse-hubzilla-231b70b987bb76a27cc8c4a36b128b4fef2178ce.tar.bz2
volse-hubzilla-231b70b987bb76a27cc8c4a36b128b4fef2178ce.zip
call zidify_links() when formatting bbcode for internal consumption
Diffstat (limited to 'include/help.php')
-rw-r--r--include/help.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/help.php b/include/help.php
index 03d01d1a1..6e779f000 100644
--- a/include/help.php
+++ b/include/help.php
@@ -79,7 +79,7 @@ function get_help_content($tocpath = false) {
}
if($doctype === 'bbcode') {
require_once('include/bbcode.php');
- $content = bbcode($text);
+ $content = zidify_links(bbcode($text));
// bbcode retargets external content to new windows. This content is internal.
$content = str_replace(' target="_blank"', '', $content);
}
@@ -95,7 +95,7 @@ function preg_callback_help_include($matches) {
$include = str_replace($matches[0],load_doc_file($matches[1]),$matches[0]);
if(preg_match('/\.bb$/', $matches[1]) || preg_match('/\.txt$/', $matches[1])) {
require_once('include/bbcode.php');
- $include = bbcode($include);
+ $include = zidify_links(bbcode($include));
$include = str_replace(' target="_blank"','',$include);
}
elseif(preg_match('/\.md$/', $matches[1])) {