diff options
author | Friendika <info@friendika.com> | 2011-11-01 02:17:36 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-11-01 02:17:36 -0700 |
commit | 05eca449c82c9b574321b71864406bab3f926442 (patch) | |
tree | 10d86d0bb3c65c5c39408b49d102614b219ddffd /mod | |
parent | f4518c646a588177e93a05363f07b61dce3fb563 (diff) | |
download | volse-hubzilla-05eca449c82c9b574321b71864406bab3f926442.tar.gz volse-hubzilla-05eca449c82c9b574321b71864406bab3f926442.tar.bz2 volse-hubzilla-05eca449c82c9b574321b71864406bab3f926442.zip |
bookmarks not getting translated to D*
Diffstat (limited to 'mod')
-rw-r--r-- | mod/item.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php index 2c8704a31..3af0f799a 100644 --- a/mod/item.php +++ b/mod/item.php @@ -333,14 +333,20 @@ function item_post(&$a) { } } - // embedded bookmark in post? convert to regular url and set bookmark flag + // embedded bookmark in post? set bookmark flag $bookmark = 0; - if(preg_match_all("/\[bookmark\=([^\]]*)\](.*?)\[\/bookmark\]/ism",$body,$match)) { + if(preg_match_all("/\[bookmark\=([^\]]*)\](.*?)\[\/bookmark\]/ism",$body,$match,PREG_SET_ORDER)) { $bookmark = 1; +// foreach($match as $mtch) { +// $body = str_replace( +// '[bookmark=' . $mtch[1] . ']' . $mtch[2] . '[/bookmark]', +// '[url=' . $mtch[1] . ']' . $mtch[2] . '[/url]', +// $body +// ); +// } } - $body = bb_translate_video($body); /** |