Browse Source

Remove references to include/bbcode.php

pull/4462/head
Hypolite Petovan 4 years ago
parent
commit
9e3bae5caa
  1. 3
      include/acl_selectors.php
  2. 1
      include/api.php
  3. 1
      include/bb2diaspora.php
  4. 2
      include/conversation.php
  5. 1
      include/enotify.php
  6. 2
      include/event.php
  7. 1
      include/items.php
  8. 3
      include/text.php
  9. 2
      mod/babel.php
  10. 1
      mod/community.php
  11. 2
      mod/display.php
  12. 1
      mod/events.php
  13. 1
      mod/filer.php
  14. 1
      mod/like.php
  15. 2
      mod/message.php
  16. 1
      mod/notes.php
  17. 1
      mod/notify.php
  18. 2
      mod/photos.php
  19. 1
      mod/ping.php
  20. 1
      mod/poco.php
  21. 1
      mod/poke.php
  22. 1
      mod/profile.php
  23. 1
      mod/register.php
  24. 1
      mod/search.php
  25. 1
      mod/subthread.php
  26. 1
      mod/tagger.php
  27. 2
      mod/tagrm.php
  28. 3
      mod/videos.php
  29. 1
      src/Content/Text/BBCode.php
  30. 1
      src/Core/NotificationsManager.php
  31. 3
      src/Model/Profile.php
  32. 1
      src/Protocol/DFRN.php
  33. 1
      src/Protocol/OStatus.php
  34. 1
      src/Worker/Delivery.php
  35. 1
      src/Worker/Notifier.php
  36. 1
      src/Worker/Queue.php

3
include/acl_selectors.php

@ -186,9 +186,6 @@ function contact_selector($selname, $selclass, $options, $preselected = false)
function contact_select($selname, $selclass, $preselected = false, $size = 4, $privmail = false, $celeb = false, $privatenet = false, $tabindex = null) {
require_once "include/bbcode.php";
$a = get_app();
$o = '';

1
include/api.php

@ -40,7 +40,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\XML;
require_once 'include/bbcode.php';
require_once 'include/conversation.php';
require_once 'include/html2plain.php';
require_once 'mod/share.php';

1
include/bb2diaspora.php

@ -12,7 +12,6 @@ use League\HTMLToMarkdown\HtmlConverter;
require_once 'include/event.php';
require_once 'include/html2bbcode.php';
require_once 'include/bbcode.php';
/**
* @brief Callback function to replace a Diaspora style mention in a mention for Friendica

2
include/conversation.php

@ -21,7 +21,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal;
use Friendica\Util\XML;
require_once "include/bbcode.php";
require_once "include/acl_selectors.php";
function item_extract_images($body) {
@ -499,7 +498,6 @@ function item_condition() {
*
*/
function conversation(App $a, $items, $mode, $update, $preview = false) {
require_once 'include/bbcode.php';
require_once 'mod/proxy.php';
$ssl_state = ((local_user()) ? true : false);

1
include/enotify.php

@ -12,7 +12,6 @@ use Friendica\Database\DBM;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Emailer;
require_once 'include/bbcode.php';
require_once 'include/html2bbcode.php';
/**

2
include/event.php

@ -16,7 +16,6 @@ use Friendica\Model\Profile;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Map;
require_once 'include/bbcode.php';
require_once 'include/conversation.php';
function format_event_html($ev, $simple = false) {
@ -239,7 +238,6 @@ function event_delete($event_id) {
function event_store($arr) {
require_once 'include/items.php';
require_once 'include/bbcode.php';
$a = get_app();

1
include/items.php

@ -19,7 +19,6 @@ use Friendica\Util\Network;
use Friendica\Util\ParseUrl;
use Friendica\Util\Temporal;
require_once 'include/bbcode.php';
require_once 'include/text.php';
require_once 'mod/share.php';
require_once 'include/enotify.php';

3
include/text.php

@ -1424,9 +1424,6 @@ function prepare_body(&$item, $attach = false, $preview = false) {
* @return string Formattet HTML.
*/
function prepare_text($text) {
require_once 'include/bbcode.php';
if (stristr($text, '[nosmile]')) {
$s = BBCode::convert($text);
} else {

2
mod/babel.php

@ -7,7 +7,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Markdown;
use Friendica\Core\L10n;
require_once 'include/bbcode.php';
require_once 'include/bb2diaspora.php';
require_once 'include/html2bbcode.php';
@ -43,7 +42,6 @@ function babel_content()
$o .= '<h2>' . L10n::t("bbcode \x28raw HTML\x28: ") . '</h2>' . EOL . EOL;
$o .= htmlspecialchars($html) . EOL . EOL;
//$html = bbcode($text);
$o .= '<h2>' . L10n::t('bbcode: ') . '</h2>' . EOL . EOL;
$o .= $html . EOL . EOL;

1
mod/community.php

@ -63,7 +63,6 @@ function community_content(App $a, $update = 0)
}
}
require_once 'include/bbcode.php';
require_once 'include/security.php';
require_once 'include/conversation.php';

2
mod/display.php

@ -367,8 +367,8 @@ function display_content(App $a, $update = false, $update_uid = 0) {
$o .= conversation($a, $items, 'display', $update_uid);
// Preparing the meta header
require_once 'include/bbcode.php';
require_once 'include/html2plain.php';
$description = trim(html2plain(BBCode::convert($s[0]["body"], false), 0, true));
$title = trim(html2plain(BBCode::convert($s[0]["title"], false), 0, true));
$author_name = $s[0]["author-name"];

1
mod/events.php

@ -15,7 +15,6 @@ use Friendica\Model\Profile;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal;
require_once 'include/bbcode.php';
require_once 'include/event.php';
require_once 'include/items.php';

1
mod/filer.php

@ -7,7 +7,6 @@ use Friendica\Core\L10n;
use Friendica\Core\PConfig;
require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php';
function filer_content(App $a)

1
mod/like.php

@ -5,7 +5,6 @@ use Friendica\Core\System;
use Friendica\Model\Item;
require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php';
function like_content(App $a) {

2
mod/message.php

@ -336,8 +336,6 @@ function message_content(App $a)
intval(local_user())
);
require_once("include/bbcode.php");
$tpl = get_markup_template('msg-header.tpl');
$a->page['htmlhead'] .= replace_macros($tpl, [
'$baseurl' => System::baseUrl(true),

1
mod/notes.php

@ -31,7 +31,6 @@ function notes_content(App $a, $update = false)
return;
}
require_once 'include/bbcode.php';
require_once 'include/security.php';
require_once 'include/conversation.php';
require_once 'include/acl_selectors.php';

1
mod/notify.php

@ -62,7 +62,6 @@ function notify_content(App $a)
$notif_tpl = get_markup_template('notifications.tpl');
$not_tpl = get_markup_template('notify.tpl');
require_once('include/bbcode.php');
$r = $nm->getAll(['seen'=>0]);
if (DBM::is_result($r) > 0) {

2
mod/photos.php

@ -27,7 +27,6 @@ use Friendica\Util\Temporal;
require_once 'include/items.php';
require_once 'include/acl_selectors.php';
require_once 'include/bbcode.php';
require_once 'include/security.php';
function photos_init(App $a) {
@ -934,7 +933,6 @@ function photos_content(App $a)
return;
}
require_once 'include/bbcode.php';
require_once 'include/security.php';
require_once 'include/conversation.php';

1
mod/ping.php

@ -19,7 +19,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal;
use Friendica\Util\XML;
require_once 'include/bbcode.php';
require_once 'mod/proxy.php';
require_once 'include/enotify.php';

1
mod/poco.php

@ -246,7 +246,6 @@ function poco_init(App $a) {
}
$about = Cache::get("about:" . $contact['updated'] . ":" . $contact['nurl']);
if (is_null($about)) {
require_once 'include/bbcode.php';
$about = BBCode::convert($contact['about'], false);
Cache::set("about:" . $contact['updated'] . ":" . $contact['nurl'], $about);
}

1
mod/poke.php

@ -22,7 +22,6 @@ use Friendica\Database\DBM;
use Friendica\Model\Item;
require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php';
function poke_init(App $a) {

1
mod/profile.php

@ -116,7 +116,6 @@ function profile_content(App $a, $update = 0)
return Login::form();
}
require_once 'include/bbcode.php';
require_once 'include/security.php';
require_once 'include/conversation.php';
require_once 'include/acl_selectors.php';

1
mod/register.php

@ -15,7 +15,6 @@ use Friendica\Model\User;
use Friendica\Util\DateTimeFormat;
require_once 'include/enotify.php';
require_once 'include/bbcode.php';
function register_post(App $a)
{

1
mod/search.php

@ -11,7 +11,6 @@ use Friendica\Core\L10n;
use Friendica\Core\System;
use Friendica\Database\DBM;
require_once "include/bbcode.php";
require_once 'include/security.php';
require_once 'include/conversation.php';
require_once 'mod/dirfind.php';

1
mod/subthread.php

@ -10,7 +10,6 @@ use Friendica\Database\DBM;
use Friendica\Model\Item;
require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php';
function subthread_content(App $a) {

1
mod/tagger.php

@ -11,7 +11,6 @@ use Friendica\Database\DBM;
use Friendica\Model\Item;
require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php';
function tagger_content(App $a) {

2
mod/tagrm.php

@ -10,8 +10,6 @@ use Friendica\Core\System;
use Friendica\Database\DBM;
use Friendica\Model\Item;
require_once 'include/bbcode.php';
function tagrm_post(App $a) {
if (!local_user()) {

3
mod/videos.php

@ -20,7 +20,6 @@ use Friendica\Util\DateTimeFormat;
require_once 'include/items.php';
require_once 'include/acl_selectors.php';
require_once 'include/bbcode.php';
require_once 'include/security.php';
function videos_init(App $a) {
@ -202,8 +201,6 @@ function videos_content(App $a) {
return;
}
require_once('include/bbcode.php');
require_once('include/security.php');
require_once('include/conversation.php');

1
src/Content/Text/BBCode.php

@ -23,7 +23,6 @@ use Friendica\Util\Map;
use Friendica\Util\Network;
use Friendica\Util\ParseUrl;
require_once "include/bbcode.php";
require_once "include/event.php";
require_once "include/html2plain.php";
require_once "mod/proxy.php";

1
src/Core/NotificationsManager.php

@ -20,7 +20,6 @@ use Friendica\Util\XML;
require_once 'include/dba.php';
require_once 'include/html2plain.php';
require_once 'include/bbcode.php';
/**
* @brief Methods for read and write notifications from/to database

3
src/Model/Profile.php

@ -24,7 +24,6 @@ use Friendica\Util\Temporal;
use dba;
require_once 'include/dba.php';
require_once 'include/bbcode.php';
require_once 'mod/proxy.php';
class Profile
@ -625,8 +624,6 @@ class Profile
public static function getEvents()
{
require_once 'include/bbcode.php';
$a = get_app();
$o = '';

1
src/Protocol/DFRN.php

@ -43,7 +43,6 @@ require_once "include/items.php";
require_once "include/event.php";
require_once "include/text.php";
require_once "include/html2bbcode.php";
require_once "include/bbcode.php";
/**
* @brief This class contain functions to create and send DFRN XML files

1
src/Protocol/OStatus.php

@ -26,7 +26,6 @@ use DOMXPath;
require_once 'include/dba.php';
require_once 'include/html2bbcode.php';
require_once 'include/bbcode.php';
require_once 'include/items.php';
require_once 'mod/share.php';
require_once 'include/enotify.php';

1
src/Worker/Delivery.php

@ -19,7 +19,6 @@ use dba;
require_once 'include/html2plain.php';
require_once 'include/items.php';
require_once 'include/bbcode.php';
/// @todo This is some ugly code that needs to be split into several methods

1
src/Worker/Notifier.php

@ -20,7 +20,6 @@ use dba;
require_once 'include/dba.php';
require_once 'include/html2plain.php';
require_once 'include/items.php';
require_once 'include/bbcode.php';
/*
* This file was at one time responsible for doing all deliveries, but this caused

1
src/Worker/Queue.php

@ -18,7 +18,6 @@ use dba;
require_once 'include/dba.php';
require_once 'include/items.php';
require_once 'include/bbcode.php';
class Queue
{

Loading…
Cancel
Save