]> git.mxchange.org Git - friendica-addons.git/commitdiff
Remove references to include/bbcode.php
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 15 Feb 2018 03:04:06 +0000 (22:04 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Thu, 15 Feb 2018 03:04:06 +0000 (22:04 -0500)
12 files changed:
blogger/blogger.php
dwpost/dwpost.php
ijpost/ijpost.php
impressum/impressum.php
ljpost/ljpost.php
mailstream/mailstream.php
newmemberwidget/newmemberwidget.php
pumpio/pumpio.php
statusnet/statusnet.php
tumblr/tumblr.php
windowsphonepush/windowsphonepush.php
wppost/wppost.php

index 76c12bbb65ed5e5b2c6ab22c8ec63afbd6939f70..30c450bda9f6e5c180c597fdb70fee59c381750c 100644 (file)
@@ -183,8 +183,6 @@ function blogger_send(&$a, &$b)
        $bl_blog = PConfig::get($b['uid'], 'blogger', 'bl_blog');
 
        if ($bl_username && $bl_password && $bl_blog) {
-               require_once('include/bbcode.php');
-
                $title = '<title>' . (($b['title']) ? $b['title'] : L10n::t('Post from Friendica')) . '</title>';
                $post = $title . BBCode::convert($b['body']);
                $post = xmlify($post);
index 7e8488c376796c85445414fbbc4d678dfaa87cbb..a46f55b2a3d30c817ce6134349aef882af5c70a8 100644 (file)
@@ -179,9 +179,6 @@ function dwpost_send(&$a,&$b) {
        $dw_blog = 'http://www.dreamwidth.org/interface/xmlrpc';
 
        if($dw_username && $dw_password && $dw_blog) {
-
-               require_once('include/bbcode.php');
-
                $title = $b['title'];
                $post = BBCode::convert($b['body']);
                $post = xmlify($post);
index 439018f41eab5ebec3b80df8a8eab1588a5d10b6..8d5290855f0e08496b9dc56e6f1ed18125862eed 100644 (file)
@@ -178,9 +178,6 @@ function ijpost_send(&$a,&$b) {
        $ij_blog = 'http://www.insanejournal.com/interface/xmlrpc';
 
        if($ij_username && $ij_password && $ij_blog) {
-
-               require_once('include/bbcode.php');
-
                $title = $b['title'];
                $post = BBCode::convert($b['body']);
                $post = xmlify($post);
index ae6ddf18daebbc83d32244c6b6b37fde5a0402db..50458ee5e7bdb9699dc004388ebd926f33b8e372 100644 (file)
@@ -7,7 +7,6 @@
  * License: 3-clause BSD license
  */
 
-require_once 'include/bbcode.php';
 require_once 'mod/proxy.php';
 
 use Friendica\Content\Text\BBCode;
index 97daf519e8a82a22d459f1c0af4d56fb4355e995..ec99f9ba9361585971ed4b12810d44230fd67828 100644 (file)
@@ -179,9 +179,6 @@ function ljpost_send(&$a,&$b) {
                $lj_blog = xmlify('http://www.livejournal.com/interface/xmlrpc');
 
        if($lj_username && $lj_password && $lj_blog) {
-
-               require_once('include/bbcode.php');
-
                $title = xmlify($b['title']);
                $post = BBCode::convert($b['body']);
                $post = xmlify($post);
index acab591453e2710575201b6e4dbc31ea01d8e15d..6c057b21b9bfa15aa1d65605242c350854b1f923 100644 (file)
@@ -257,7 +257,7 @@ function mailstream_send($a, $message_id, $item, $user) {
                return;
        }
        require_once(dirname(__file__).'/phpmailer/class.phpmailer.php');
-       require_once('include/bbcode.php');
+
        $attachments = [];
        mailstream_do_images($a, $item, $attachments);
        $frommail = Config::get('mailstream', 'frommail');
index 6ea83367057e36e7ed0fb7feeb1ed65005a8316a..57b49230c1a60fbed7be7396b2095456eaee74c3 100644 (file)
@@ -6,8 +6,6 @@
  * Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias>
  ***/
 
-require_once 'include/bbcode.php';
-
 use Friendica\Content\Text\BBCode;
 use Friendica\Core\Addon;
 use Friendica\Core\Config;
index 129f2738d3381288b5cb73412889b0ba52b57a4e..a1ca2ade7dec6f125c2b76ade46fb17ddf8f7468 100644 (file)
@@ -471,9 +471,6 @@ function pumpio_send(&$a,&$b) {
        $public = PConfig::get($b['uid'], "pumpio", "public");
 
        if($oauth_token && $oauth_token_secret) {
-
-               require_once('include/bbcode.php');
-
                $title = trim($b['title']);
 
                $content = BBCode::convert($b['body'], false, 4);
index f1c080f495c53aa6838148c37d20c0d3af743979..c54ff55f6c923ce65d4b4e3051bf2d770144884c 100644 (file)
@@ -544,7 +544,6 @@ function statusnet_post_hook(App $a, &$b)
                        return;
                }
 
-               require_once 'include/bbcode.php';
                $dent = new StatusNetOAuth($api, $ckey, $csecret, $otoken, $osecret);
                $max_char = $dent->get_maxlength(); // max. length for a dent
 
index 831dd61568ba66f36dbef1fe0d158ef0190d8331..b2dec5b544a3735c35fc74fc785f011b66abb372 100644 (file)
@@ -342,9 +342,6 @@ function tumblr_send(&$a,&$b) {
        $tmbl_blog = 'blog/'.$page.'/post';
 
        if($oauth_token && $oauth_token_secret && $tmbl_blog) {
-
-               require_once('include/bbcode.php');
-
                $tag_arr = [];
                $tags = '';
                $x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
index 346f550f2de841828d00413adaee6e98d56d1bcb..206b0883e4b03241db96b7909d50ea28372a853e 100644 (file)
@@ -211,8 +211,8 @@ function windowsphonepush_cron()
                                                if (substr($body, 0, 4) == "[url") {
                                                        $body = "URL/Image ...";
                                                } else {
-                                                       require_once('include/bbcode.php');
                                                        require_once("include/html2plain.php");
+
                                                        $body = BBCode::convert($body, false, 2, true);
                                                        $body = html2plain($body, 0);
                                                        $body = ((strlen($body) > 137) ? substr($body, 0, 137) . "..." : $body);
index 23f928bcc537ba79315963014a9dcdd608fc24ac..8d14b17016ec1deee552e7ee5acfe0ab6131ff42 100644 (file)
@@ -221,7 +221,6 @@ function wppost_send(&$a,&$b) {
        }
 
        if ($wp_username && $wp_password && $wp_blog) {
-               require_once 'include/bbcode.php';
                require_once 'include/html2plain.php';
 
                $wptitle = trim($b['title']);