]> git.mxchange.org Git - friendica.git/blobdiff - mod/share.php
Move HTML part of oid to template + replace outside the tpl
[friendica.git] / mod / share.php
index e372031bbf6b55d90bc70949bfe8ffc69e7e1a57..516ff98e73cd0bd7cbc76f496e2cc13985688ebd 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-require_once('bbcode.php');
+require_once('include/bbcode.php');
 
 function share_init(&$a) {
 
@@ -23,7 +23,7 @@ function share_init(&$a) {
                        $pos = strpos($r[0]['body'], "[share");
                        $o = substr($r[0]['body'], $pos);
                } else {
-                       $o = "[share author='".$r[0]['author-name'].
+                       $o = "[share author='".str_replace("'", "&#039;",$r[0]['author-name']).
                                "' profile='".$r[0]['author-link'].
                                "' avatar='".$r[0]['author-avatar'].
                                "' link='".$r[0]['plink']."']\n";