Remove include/ requires that are now done directly from Composer
This commit is contained in:
parent
35a6e33e0d
commit
acaee626f5
122 changed files with 0 additions and 312 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -15,8 +15,6 @@ use Friendica\Module;
|
|||
use Friendica\Util\Proxy as ProxyUtils;
|
||||
|
||||
|
||||
require_once 'include/dba.php';
|
||||
|
||||
function allfriends_content(App $a)
|
||||
{
|
||||
$o = '';
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
|
@ -93,8 +93,6 @@ function community_content(App $a, $update = 0)
|
|||
}
|
||||
}
|
||||
|
||||
require_once 'include/conversation.php';
|
||||
|
||||
if (!$update) {
|
||||
$tabs = [];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -214,8 +214,6 @@ function display_content(App $a, $update = false, $update_uid = 0)
|
|||
return;
|
||||
}
|
||||
|
||||
require_once 'include/conversation.php';
|
||||
|
||||
$o = '';
|
||||
|
||||
if ($update) {
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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']));
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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']]];
|
||||
|
|
|
@ -34,8 +34,6 @@ function notes_content(App $a, $update = false)
|
|||
return;
|
||||
}
|
||||
|
||||
require_once 'include/conversation.php';
|
||||
|
||||
$o = Profile::getTabs($a, true);
|
||||
|
||||
if (!$update) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
* @file mod/phpinfo.php
|
||||
*/
|
||||
|
||||
require_once 'boot.php';
|
||||
|
||||
function phpinfo_content()
|
||||
{
|
||||
if (!is_site_admin()) {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue