allow the link target attribute to be modified in bbcode() from much further up the call stack in prepare_page() which will usually refer to a local item.

This commit is contained in:
zotlabs
2018-04-04 16:33:11 -07:00
parent 8871f8d0f4
commit f748139606
4 changed files with 24 additions and 31 deletions

View File

@@ -306,7 +306,7 @@ function store_doc_file($s) {
require_once('include/html2plain.php');
$item['body'] = html2plain(prepare_text(file_get_contents($s),$mimetype, true));
$item['body'] = html2plain(prepare_text(file_get_contents($s),$mimetype, [ 'cache' => true ]));
$item['mimetype'] = 'text/plain';
$item['plink'] = z_root() . '/' . str_replace('doc','help',$s);