Browse Source

Remove include/ requires that are now done directly from Composer

pull/6315/head
Hypolite Petovan 3 years ago
parent
commit
acaee626f5
  1. 1
      bin/auth_ejabberd.php
  2. 1
      bin/daemon.php
  3. 2
      boot.php
  4. 1
      include/api.php
  5. 3
      include/items.php
  6. 2
      include/text.php
  7. 2
      mod/acl.php
  8. 4
      mod/admin.php
  9. 2
      mod/allfriends.php
  10. 2
      mod/attach.php
  11. 3
      mod/bookmarklet.php
  12. 2
      mod/common.php
  13. 2
      mod/community.php
  14. 3
      mod/dfrn_confirm.php
  15. 2
      mod/dfrn_notify.php
  16. 2
      mod/dfrn_poll.php
  17. 2
      mod/dfrn_request.php
  18. 2
      mod/display.php
  19. 2
      mod/events.php
  20. 4
      mod/feedtest.php
  21. 2
      mod/filer.php
  22. 5
      mod/item.php
  23. 2
      mod/like.php
  24. 4
      mod/lostpass.php
  25. 2
      mod/manage.php
  26. 2
      mod/message.php
  27. 3
      mod/network.php
  28. 2
      mod/nodeinfo.php
  29. 2
      mod/notes.php
  30. 2
      mod/parse_url.php
  31. 4
      mod/photos.php
  32. 2
      mod/phpinfo.php
  33. 2
      mod/ping.php
  34. 2
      mod/poke.php
  35. 3
      mod/profile.php
  36. 2
      mod/pubsub.php
  37. 2
      mod/register.php
  38. 2
      mod/regmod.php
  39. 2
      mod/removeme.php
  40. 2
      mod/salmon.php
  41. 1
      mod/search.php
  42. 2
      mod/subthread.php
  43. 2
      mod/tagger.php
  44. 4
      mod/videos.php
  45. 3
      src/App.php
  46. 2
      src/BaseObject.php
  47. 2
      src/Content/ForumManager.php
  48. 3
      src/Content/Nav.php
  49. 2
      src/Content/OEmbed.php
  50. 3
      src/Content/Widget.php
  51. 3
      src/Content/Widget/CalendarExport.php
  52. 2
      src/Content/Widget/TagCloud.php
  53. 2
      src/Core/Config.php
  54. 2
      src/Core/Config/JITConfigAdapter.php
  55. 2
      src/Core/Config/JITPConfigAdapter.php
  56. 2
      src/Core/Config/PreloadConfigAdapter.php
  57. 2
      src/Core/Config/PreloadPConfigAdapter.php
  58. 2
      src/Core/Console/AutomaticInstallation.php
  59. 3
      src/Core/Console/DatabaseStructure.php
  60. 2
      src/Core/Console/GlobalCommunitySilence.php
  61. 3
      src/Core/Console/Maintenance.php
  62. 1
      src/Core/Installer.php
  63. 3
      src/Core/L10n.php
  64. 2
      src/Core/NotificationsManager.php
  65. 2
      src/Core/PConfig.php
  66. 3
      src/Core/Session/CacheSessionHandler.php
  67. 4
      src/Core/Session/DatabaseSessionHandler.php
  68. 2
      src/Core/Theme.php
  69. 2
      src/Core/UserImport.php
  70. 2
      src/Core/Worker.php
  71. 2
      src/Database/DBA.php
  72. 5
      src/Database/DBStructure.php
  73. 2
      src/Database/PostUpdate.php
  74. 2
      src/Model/APContact.php
  75. 6
      src/Model/Contact.php
  76. 2
      src/Model/Conversation.php
  77. 4
      src/Model/Event.php
  78. 2
      src/Model/GContact.php
  79. 4
      src/Model/Group.php
  80. 4
      src/Model/Item.php
  81. 4
      src/Model/ItemContent.php
  82. 2
      src/Model/ItemURI.php
  83. 2
      src/Model/Mail.php
  84. 2
      src/Model/PermissionSet.php
  85. 2
      src/Model/Photo.php
  86. 2
      src/Model/Process.php
  87. 2
      src/Model/Profile.php
  88. 2
      src/Model/PushSubscriber.php
  89. 2
      src/Model/Queue.php
  90. 4
      src/Model/Term.php
  91. 4
      src/Model/User.php
  92. 3
      src/Module/Hashtag.php
  93. 3
      src/Module/Login.php
  94. 2
      src/Module/Logout.php
  95. 2
      src/Network/FKOAuthDataStore.php
  96. 2
      src/Network/Probe.php
  97. 5
      src/Object/Post.php
  98. 3
      src/Object/Thread.php
  99. 6
      src/Protocol/DFRN.php
  100. 3
      src/Protocol/Diaspora.php

1
bin/auth_ejabberd.php

@ -50,7 +50,6 @@ $directory = realpath($directory . DIRECTORY_SEPARATOR . "..");
chdir($directory);
require_once "boot.php";
require_once "include/dba.php";
$a = new App(dirname(__DIR__));

1
bin/daemon.php

@ -31,7 +31,6 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
}
require_once "boot.php";
require_once "include/dba.php";
$a = new App(dirname(__DIR__));

2
boot.php

@ -35,8 +35,6 @@ use Friendica\Model\Contact;
use Friendica\Model\Conversation;
use Friendica\Util\DateTimeFormat;
require_once 'include/text.php';
define('FRIENDICA_PLATFORM', 'Friendica');
define('FRIENDICA_CODENAME', 'The Tazmans Flax-lily');
define('FRIENDICA_VERSION', '2018.12-rc');

1
include/api.php

@ -46,7 +46,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'include/conversation.php';
require_once 'mod/share.php';
require_once 'mod/item.php';
require_once 'mod/wall_upload.php';

3
include/items.php

@ -24,10 +24,7 @@ use Friendica\Util\ParseUrl;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
require_once 'include/text.php';
require_once 'mod/share.php';
require_once 'include/enotify.php';
function add_page_info_data(array $data, $no_photos = false)
{
Addon::callHooks('page_info_data', $data);

2
include/text.php

@ -30,8 +30,6 @@ use Friendica\Util\Strings;
use Friendica\Util\XML;
use Friendica\Content\Text\HTML;
require_once "include/conversation.php";
/**
* Turn user/group ACLs stored as angle bracketed text into arrays
*

2
mod/acl.php

@ -14,8 +14,6 @@ use Friendica\Model\Item;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
require_once 'include/dba.php';
function acl_content(App $a)
{
if (!local_user()) {

4
mod/admin.php

@ -33,10 +33,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
require_once 'include/enotify.php';
require_once 'include/text.php';
require_once 'include/items.php';
/**
* @brief Process send data from the admin panels subpages
*

2
mod/allfriends.php

@ -15,8 +15,6 @@ use Friendica\Module;
use Friendica\Util\Proxy as ProxyUtils;
require_once 'include/dba.php';
function allfriends_content(App $a)
{
$o = '';

2
mod/attach.php

@ -8,8 +8,6 @@ use Friendica\Core\L10n;
use Friendica\Database\DBA;
use Friendica\Util\Security;
require_once 'include/dba.php';
function attach_init(App $a)
{
if ($a->argc != 2) {

3
mod/bookmarklet.php

@ -11,9 +11,6 @@ use Friendica\Core\System;
use Friendica\Module\Login;
use Friendica\Util\Strings;
require_once 'include/conversation.php';
require_once 'include/items.php';
function bookmarklet_init()
{
$_GET["mode"] = "minimal";

2
mod/common.php

@ -14,8 +14,6 @@ use Friendica\Module;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
require_once 'include/dba.php';
function common_content(App $a)
{
$o = '';

2
mod/community.php

@ -93,8 +93,6 @@ function community_content(App $a, $update = 0)
}
}
require_once 'include/conversation.php';
if (!$update) {
$tabs = [];

3
mod/dfrn_confirm.php

@ -36,9 +36,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'include/enotify.php';
require_once 'include/items.php';
function dfrn_confirm_post(App $a, $handsfree = null)
{
$node = null;

2
mod/dfrn_notify.php

@ -16,8 +16,6 @@ use Friendica\Protocol\DFRN;
use Friendica\Protocol\Diaspora;
use Friendica\Util\Strings;
require_once 'include/items.php';
function dfrn_notify_post(App $a) {
Logger::log(__function__, Logger::TRACE);

2
mod/dfrn_poll.php

@ -17,8 +17,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'include/items.php';
function dfrn_poll_init(App $a)
{
Login::sessionAuth();

2
mod/dfrn_request.php

@ -30,8 +30,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Strings;
require_once 'include/enotify.php';
function dfrn_request_init(App $a)
{
if ($a->argc > 1) {

2
mod/display.php

@ -214,8 +214,6 @@ function display_content(App $a, $update = false, $update_uid = 0)
return;
}
require_once 'include/conversation.php';
$o = '';
if ($update) {

2
mod/events.php

@ -22,8 +22,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
require_once 'include/items.php';
function events_init(App $a)
{
if (!local_user()) {

4
mod/feedtest.php

@ -12,10 +12,6 @@ use Friendica\Model\Contact;
use Friendica\Protocol\Feed;
use Friendica\Util\Network;
require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/text.php';
function feedtest_content(App $a)
{
if (!local_user()) {

2
mod/filer.php

@ -10,8 +10,6 @@ use Friendica\Core\Renderer;
use Friendica\Model\FileTag;
use Friendica\Util\XML;
require_once 'include/items.php';
function filer_content(App $a)
{
if (! local_user()) {

5
mod/item.php

@ -38,10 +38,6 @@ use Friendica\Util\Emailer;
use Friendica\Util\Security;
use Friendica\Util\Strings;
require_once 'include/enotify.php';
require_once 'include/text.php';
require_once 'include/items.php';
function item_post(App $a) {
if (!local_user() && !remote_user()) {
return 0;
@ -668,7 +664,6 @@ function item_post(App $a) {
// preview mode - prepare the body for display and send it via json
if ($preview) {
require_once 'include/conversation.php';
// We set the datarray ID to -1 because in preview mode the dataray
// doesn't have an ID.
$datarray["id"] = -1;

2
mod/like.php

@ -5,8 +5,6 @@ use Friendica\Core\System;
use Friendica\Model\Item;
use Friendica\Util\Strings;
require_once 'include/items.php';
function like_content(App $a) {
if (!local_user() && !remote_user()) {
return false;

4
mod/lostpass.php

@ -13,10 +13,6 @@ use Friendica\Model\User;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;
require_once 'boot.php';
require_once 'include/enotify.php';
require_once 'include/text.php';
function lostpass_post(App $a)
{
$loginame = Strings::escapeTags(trim($_POST['login-name']));

2
mod/manage.php

@ -10,8 +10,6 @@ use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;
require_once "include/text.php";
function manage_post(App $a) {
if (! local_user()) {

2
mod/message.php

@ -21,8 +21,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
require_once 'include/conversation.php';
function message_init(App $a)
{
$tabs = '';

3
mod/network.php

@ -30,9 +30,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
require_once 'include/conversation.php';
require_once 'include/items.php';
function network_init(App $a)
{
if (!local_user()) {

2
mod/nodeinfo.php

@ -12,8 +12,6 @@ use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Util\Network;
require_once 'include/dba.php';
function nodeinfo_wellknown(App $a) {
$nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
'href' => System::baseUrl().'/nodeinfo/1.0']]];

2
mod/notes.php

@ -34,8 +34,6 @@ function notes_content(App $a, $update = false)
return;
}
require_once 'include/conversation.php';
$o = Profile::getTabs($a, true);
if (!$update) {

2
mod/parse_url.php

@ -15,8 +15,6 @@ use Friendica\Core\Logger;
use Friendica\Util\Network;
use Friendica\Util\ParseUrl;
require_once 'include/items.php';
function parse_url_content(App $a)
{
$text = null;

4
mod/photos.php

@ -34,8 +34,6 @@ use Friendica\Util\Temporal;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'include/items.php';
function photos_init(App $a) {
if ($a->argc > 1) {
@ -946,8 +944,6 @@ function photos_content(App $a)
return;
}
require_once 'include/conversation.php';
if (empty($a->data['user'])) {
notice(L10n::t('No photos selected') . EOL);
return;

2
mod/phpinfo.php

@ -3,8 +3,6 @@
* @file mod/phpinfo.php
*/
require_once 'boot.php';
function phpinfo_content()
{
if (!is_site_admin()) {

2
mod/ping.php

@ -22,8 +22,6 @@ use Friendica\Util\Temporal;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\XML;
require_once 'include/enotify.php';
/**
* @brief Outputs the counts and the lists of various notifications
*

2
mod/poke.php

@ -25,8 +25,6 @@ use Friendica\Model\Item;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'include/items.php';
function poke_init(App $a)
{
if (!local_user()) {

3
mod/profile.php

@ -135,9 +135,6 @@ function profile_content(App $a, $update = 0)
return Login::form();
}
require_once 'include/conversation.php';
require_once 'include/items.php';
$groups = [];
$remote_cid = null;

2
mod/pubsub.php

@ -9,8 +9,6 @@ use Friendica\Protocol\OStatus;
use Friendica\Util\Strings;
use Friendica\Core\System;
require_once 'include/items.php';
function hub_return($valid, $body)
{
if ($valid) {

2
mod/register.php

@ -18,8 +18,6 @@ use Friendica\Model;
use Friendica\Module\Tos;
use Friendica\Util\Strings;
require_once 'include/enotify.php';
function register_post(App $a)
{
BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register');

2
mod/regmod.php

@ -13,8 +13,6 @@ use Friendica\Model\Register;
use Friendica\Model\User;
use Friendica\Module\Login;
require_once 'include/enotify.php';
function user_allow($hash)
{
$a = get_app();

2
mod/removeme.php

@ -12,8 +12,6 @@ use Friendica\Database\DBA;
use Friendica\Model\User;
use Friendica\Util\Strings;
require_once 'include/enotify.php';
function removeme_post(App $a)
{
if (!local_user()) {

2
mod/salmon.php

@ -14,8 +14,6 @@ use Friendica\Protocol\Salmon;
use Friendica\Util\Crypto;
use Friendica\Util\Strings;
require_once 'include/items.php';
function salmon_post(App $a, $xml = '') {
if (empty($xml)) {

1
mod/search.php

@ -18,7 +18,6 @@ use Friendica\Database\DBA;
use Friendica\Model\Item;
use Friendica\Util\Strings;
require_once 'include/conversation.php';
require_once 'mod/dirfind.php';
function search_saved_searches() {

2
mod/subthread.php

@ -13,8 +13,6 @@ use Friendica\Util\Security;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'include/items.php';
function subthread_content(App $a) {
if (!local_user() && !remote_user()) {

2
mod/tagger.php

@ -13,8 +13,6 @@ use Friendica\Model\Item;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'include/items.php';
function tagger_content(App $a) {
if (!local_user() && !remote_user()) {

4
mod/videos.php

@ -18,8 +18,6 @@ use Friendica\Model\Profile;
use Friendica\Protocol\DFRN;
use Friendica\Util\Security;
require_once 'include/items.php';
function videos_init(App $a)
{
if ($a->argc > 1) {
@ -195,8 +193,6 @@ function videos_content(App $a)
return;
}
require_once 'include/conversation.php';
if (empty($a->data['user'])) {
notice(L10n::t('No videos selected') . EOL );
return;

3
src/App.php

@ -11,9 +11,6 @@ use Exception;
use Friendica\Database\DBA;
use Friendica\Network\HTTPException\InternalServerErrorException;
require_once 'boot.php';
require_once 'include/text.php';
/**
*
* class: App

2
src/BaseObject.php

@ -4,8 +4,6 @@
*/
namespace Friendica;
require_once 'boot.php';
/**
* Basic object
*

2
src/Content/ForumManager.php

@ -15,8 +15,6 @@ use Friendica\Database\DBA;
use Friendica\Model\Contact;
use Friendica\Util\Proxy as ProxyUtils;
require_once 'include/dba.php';
/**
* @brief This class handles methods related to the forum functionality
*/

3
src/Content/Nav.php

@ -15,9 +15,6 @@ use Friendica\Database\DBA;
use Friendica\Model\Contact;
use Friendica\Model\Profile;
require_once 'boot.php';
require_once 'include/text.php';
class Nav
{
private static $selected = [

2
src/Content/OEmbed.php

@ -23,8 +23,6 @@ use Friendica\Util\ParseUrl;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
require_once 'include/dba.php';
/**
* Handles all OEmbed content fetching and replacement
*

3
src/Content/Widget.php

@ -21,9 +21,6 @@ use Friendica\Model\Profile;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'boot.php';
require_once 'include/dba.php';
class Widget
{
/**

3
src/Content/Widget/CalendarExport.php

@ -10,9 +10,6 @@ use Friendica\Content\Feature;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
require_once 'boot.php';
require_once 'include/text.php';
/**
* TagCloud widget
*

2
src/Content/Widget/TagCloud.php

@ -13,8 +13,6 @@ use Friendica\Database\DBA;
use Friendica\Model\Item;
use Friendica\Util\Security;
require_once 'include/dba.php';
/**
* TagCloud widget
*

2
src/Core/Config.php

@ -12,8 +12,6 @@ use Friendica\App;
use Friendica\BaseObject;
use Friendica\Core\Config;
require_once 'include/dba.php';
/**
* @brief Arbitrary system configuration storage
*

2
src/Core/Config/JITConfigAdapter.php

@ -4,8 +4,6 @@ namespace Friendica\Core\Config;
use Friendica\BaseObject;
use Friendica\Database\DBA;
require_once 'include/dba.php';
/**
* JustInTime Configuration Adapter
*

2
src/Core/Config/JITPConfigAdapter.php

@ -4,8 +4,6 @@ namespace Friendica\Core\Config;
use Friendica\BaseObject;
use Friendica\Database\DBA;
require_once 'include/dba.php';
/**
* JustInTime User Configuration Adapter
*

2
src/Core/Config/PreloadConfigAdapter.php

@ -6,8 +6,6 @@ use Exception;
use Friendica\BaseObject;
use Friendica\Database\DBA;
require_once 'include/dba.php';
/**
* Preload Configuration Adapter
*

2
src/Core/Config/PreloadPConfigAdapter.php

@ -6,8 +6,6 @@ use Exception;
use Friendica\BaseObject;
use Friendica\Database\DBA;
require_once 'include/dba.php';
/**
* Preload User Configuration Adapter
*

2
src/Core/Console/AutomaticInstallation.php

@ -11,8 +11,6 @@ use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
use RuntimeException;
require_once 'include/dba.php';
class AutomaticInstallation extends Console
{
protected function getHelp()

3
src/Core/Console/DatabaseStructure.php

@ -8,9 +8,6 @@ use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
use RuntimeException;
require_once 'boot.php';
require_once 'include/dba.php';
/**
* @brief Performs database updates from the command line
*

2
src/Core/Console/GlobalCommunitySilence.php

@ -8,8 +8,6 @@ use Friendica\Network\Probe;
use Friendica\Util\Strings;
use RuntimeException;
require_once 'include/text.php';
/**
* @brief tool to silence accounts on the global community page
*

3
src/Core/Console/Maintenance.php

@ -4,9 +4,6 @@ namespace Friendica\Core\Console;
use Friendica\Core;
require_once 'boot.php';
require_once 'include/dba.php';
/**
* @brief Sets maintenance mode for this node
*

1
src/Core/Installer.php

@ -578,7 +578,6 @@ class Installer
*/
public function checkDB($dbhost, $dbuser, $dbpass, $dbdata)
{
require_once 'include/dba.php';
if (!DBA::connect($dbhost, $dbuser, $dbpass, $dbdata)) {
$this->addCheck(L10n::t('Could not connect to database.'), false, true, '');

3
src/Core/L10n.php

@ -10,9 +10,6 @@ use Friendica\Core\Addon;
use Friendica\Core\Logger;
use Friendica\Core\System;
require_once 'boot.php';
require_once 'include/dba.php';
/**
* Provide Language, Translation, and Localization functions to the application
* Localization can be referred to by the numeronym L10N (as in: "L", followed by ten more letters, and then "N").

2
src/Core/NotificationsManager.php

@ -19,8 +19,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Temporal;
use Friendica\Util\XML;
require_once 'include/dba.php';
/**
* @brief Methods for read and write notifications from/to database
* or for formatting notifications

2
src/Core/PConfig.php

@ -11,8 +11,6 @@ namespace Friendica\Core;
use Friendica\App;
use Friendica\BaseObject;
require_once 'include/dba.php';
/**
* @brief Management of user configuration storage
* Note:

3
src/Core/Session/CacheSessionHandler.php

@ -8,9 +8,6 @@ use Friendica\Core\Logger;
use Friendica\Core\Session;
use SessionHandlerInterface;
require_once 'boot.php';
require_once 'include/text.php';
/**
* SessionHandler using Friendica Cache
*

4
src/Core/Session/DatabaseSessionHandler.php

@ -8,10 +8,6 @@ use Friendica\Core\Session;
use Friendica\Database\DBA;
use SessionHandlerInterface;
require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/text.php';
/**
* SessionHandler using database
*

2
src/Core/Theme.php

@ -9,8 +9,6 @@ namespace Friendica\Core;
use Friendica\Core\Logger;
use Friendica\Core\System;
require_once 'boot.php';
/**
* Some functions to handle themes
*/

2
src/Core/UserImport.php

@ -13,8 +13,6 @@ use Friendica\Model\Photo;
use Friendica\Object\Image;
use Friendica\Util\Strings;
require_once "include/dba.php";
/**
* @brief UserImport class
*/

2
src/Core/Worker.php

@ -11,8 +11,6 @@ use Friendica\Model\Process;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
require_once 'include/dba.php';
/**
* @file src/Core/Worker.php
*

2
src/Database/DBA.php

@ -16,8 +16,6 @@ use PDO;
use PDOException;
use PDOStatement;
require_once 'include/dba.php';
/**
* @class MySQL database class
*

5
src/Database/DBStructure.php

@ -12,11 +12,6 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Util\DateTimeFormat;
require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/enotify.php';
require_once 'include/text.php';
/**
* @brief This class contain functions for the database management
*

2
src/Database/PostUpdate.php

@ -13,8 +13,6 @@ use Friendica\Model\ItemURI;
use Friendica\Model\PermissionSet;
use Friendica\Database\DBA;
require_once 'include/dba.php';
/**
* Post update functions
*/

2
src/Model/APContact.php

@ -16,8 +16,6 @@ use Friendica\Util\JsonLD;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;
require_once 'boot.php';
class APContact extends BaseObject
{
/**

6
src/Model/Contact.php

@ -27,10 +27,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Strings;
require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/text.php';
/**
* @brief functions for interacting with a contact
*/
@ -1376,8 +1372,6 @@ class Contact extends BaseObject
{
$a = self::getApp();
require_once 'include/conversation.php';
$cid = Self::getIdForURL($contact_url);
$contact = DBA::selectFirst('contact', ['contact-type', 'network'], ['id' => $cid]);

2
src/Model/Conversation.php

@ -10,8 +10,6 @@ use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
require_once "include/dba.php";
class Conversation
{
/*

4
src/Model/Event.php

@ -19,10 +19,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Map;
use Friendica\Util\XML;
require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/items.php';
/**
* @brief functions for interacting with the event database table
*/

2
src/Model/GContact.php

@ -19,8 +19,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Strings;
require_once 'include/dba.php';
/**
* @brief This class handles GlobalContact related functions
*/

4
src/Model/Group.php

@ -12,10 +12,6 @@ use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\Util\Security;
require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/text.php';
/**
* @brief functions for interacting with the group database table
*/

4
src/Model/Item.php

@ -36,10 +36,6 @@ use Friendica\Util\Security;
use Friendica\Util\Strings;
use Text_LanguageDetect;
require_once 'boot.php';
require_once 'include/items.php';
require_once 'include/text.php';
class Item extends BaseObject
{
// Posting types, inspired by https://www.w3.org/TR/activitystreams-vocabulary/#object-types

4
src/Model/ItemContent.php

@ -11,10 +11,6 @@ use Friendica\Content\Text;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
require_once 'boot.php';
require_once 'include/items.php';
require_once 'include/text.php';
class ItemContent extends BaseObject
{
/**

2
src/Model/ItemURI.php

@ -9,8 +9,6 @@ namespace Friendica\Model;
use Friendica\BaseObject;
use Friendica\Database\DBA;
require_once 'boot.php';
class ItemURI extends BaseObject
{
/**

2
src/Model/Mail.php

@ -13,8 +13,6 @@ use Friendica\Database\DBA;
use Friendica\Network\Probe;
use Friendica\Util\DateTimeFormat;
require_once 'include/dba.php';
/**
* Class to handle private messages
*/

2
src/Model/PermissionSet.php

@ -7,8 +7,6 @@ namespace Friendica\Model;
use Friendica\BaseObject;
use Friendica\Database\DBA;
require_once 'include/dba.php';
/**
* @brief functions for interacting with the permission set of an object (item, photo, event, ...)
*/

2
src/Model/Photo.php

@ -16,8 +16,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Security;
require_once 'include/dba.php';
/**
* Class to handle photo dabatase table
*/

2
src/Model/Process.php

@ -8,8 +8,6 @@ use Friendica\BaseObject;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
require_once 'include/dba.php';
/**
* @brief functions for interacting with a process
*/

2
src/Model/Profile.php

@ -28,8 +28,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
require_once 'include/dba.php';
class Profile
{
/**

2
src/Model/PushSubscriber.php

@ -9,8 +9,6 @@ use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
require_once 'include/dba.php';
class PushSubscriber
{
/**

2
src/Model/Queue.php

@ -9,8 +9,6 @@ use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
require_once 'include/dba.php';
class Queue
{
/**

4
src/Model/Term.php

@ -7,10 +7,6 @@ namespace Friendica\Model;
use Friendica\Core\System;
use Friendica\Database\DBA;
require_once 'boot.php';
require_once 'include/conversation.php';
require_once 'include/dba.php';
class Term
{
public static function tagTextFromItemId($itemid)

4
src/Model/User.php

@ -24,10 +24,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
use LightOpenID;
require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/enotify.php';
require_once 'include/text.php';
/**
* @brief This class handles User related functions
*/

3
src/Module/Hashtag.php

@ -9,9 +9,6 @@ use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Util\Strings;
require_once 'include/dba.php';
require_once 'include/text.php';
/**
* Hashtag module.
*/

3
src/Module/Login.php

@ -20,9 +20,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
use LightOpenID;
require_once 'boot.php';
require_once 'include/text.php';
/**
* Login module
*

2
src/Module/Logout.php

@ -10,8 +10,6 @@ use Friendica\Core\Authentication;
use Friendica\Core\L10n;
use Friendica\Core\System;
require_once 'boot.php';
/**
* Logout module
*

2
src/Network/FKOAuthDataStore.php

@ -19,8 +19,6 @@ use OAuthToken;
define('REQUEST_TOKEN_DURATION', 300);
define('ACCESS_TOKEN_DURATION', 31536000);
require_once 'include/dba.php';
/**
* @brief OAuthDataStore class
*/

2
src/Network/Probe.php

@ -28,8 +28,6 @@ use Friendica\Util\Strings;
use Friendica\Util\XML;
use DomXPath;
require_once 'include/dba.php';
/**
* @brief This class contain functions for probing URL
*

5
src/Object/Post.php

@ -24,11 +24,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
require_once 'include/dba.php';
require_once 'include/text.php';
require_once 'boot.php';
require_once 'include/conversation.php';
/**
* An item
*/

3
src/Object/Thread.php

@ -10,9 +10,6 @@ use Friendica\Core\Protocol;
use Friendica\Object\Post;
use Friendica\Util\Security;
require_once 'boot.php';
require_once 'include/text.php';
/**
* A list of threads
*

6
src/Protocol/DFRN.php

@ -37,12 +37,6 @@ use Friendica\Util\XML;
use HTMLPurifier;
use HTMLPurifier_Config;
require_once 'boot.php';
require_once 'include/dba.php';
require_once "include/enotify.php";
require_once "include/items.php";
require_once "include/text.php";
/**
* @brief This class contain functions to create and send DFRN XML files
*/

3
src/Protocol/Diaspora.php

@ -38,9 +38,6 @@ use Friendica\Util\Strings;
use Friendica\Util\XML;
use SimpleXMLElement;
require_once 'include/dba.php';
require_once 'include/items.php';
/**
* @brief This class contain functions to create and send Diaspora XML files
*

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save