]> git.mxchange.org Git - friendica.git/commitdiff
Remove references to include/datetime
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 3 Feb 2018 17:27:47 +0000 (12:27 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 4 Feb 2018 01:47:37 +0000 (20:47 -0500)
28 files changed:
boot.php
include/api.php
include/dba.php
include/event.php
mod/events.php
mod/install.php
mod/localtime.php
mod/lostpass.php
mod/ping.php
mod/wall_attach.php
src/Core/NotificationsManager.php
src/Model/GContact.php
src/Model/Mail.php
src/Model/Process.php
src/Model/Queue.php
src/Module/Login.php
src/Protocol/Diaspora.php
src/Protocol/PortableContact.php
src/Worker/Cron.php
src/Worker/CronHooks.php
src/Worker/CronJobs.php
src/Worker/Delivery.php
src/Worker/DiscoverPoCo.php
src/Worker/Expire.php
src/Worker/GProbe.php
src/Worker/Notifier.php
src/Worker/OnePoll.php
src/Worker/Queue.php

index b3743ab9916c47cd040ec000d7f0803ef7ad4ab4..004ebf3adecde4a4563a754dccf46153a66d1c5e 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -32,7 +32,6 @@ use Friendica\Model\Contact;
 use Friendica\Util\DateTimeFormat;
 
 require_once 'include/text.php';
-require_once 'include/datetime.php';
 
 define('FRIENDICA_PLATFORM',     'Friendica');
 define('FRIENDICA_CODENAME',     'Asparagus');
index 96a935614dbf44aab6b1ba3f7b4f5cabad2c93f1..e50bc92a8ee1ba356fc586d73bc4bb106ce52fa6 100644 (file)
@@ -41,7 +41,6 @@ use Friendica\Util\Network;
 use Friendica\Util\XML;
 
 require_once 'include/bbcode.php';
-require_once 'include/datetime.php';
 require_once 'include/conversation.php';
 require_once 'include/html2plain.php';
 require_once 'mod/share.php';
index f6bab9e3c58e0eb85a6ebae86495da91652dd9cd..1407c1c6f5e8793e4d7a7aa3b17d3ebb544e5bfa 100644 (file)
@@ -6,8 +6,6 @@ use Friendica\Database\DBM;
 use Friendica\Database\DBStructure;
 use Friendica\Util\DateTimeFormat;
 
-require_once('include/datetime.php');
-
 /**
  * @class MySQL database class
  *
index 647697e5a0f66c1762b80775ca119aca58ee29c7..30ba1cfde26b8a7c00bff69287ad812cfc14edc6 100644 (file)
@@ -16,7 +16,6 @@ use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Map;
 
 require_once 'include/bbcode.php';
-require_once 'include/datetime.php';
 require_once 'include/conversation.php';
 
 function format_event_html($ev, $simple = false) {
@@ -238,7 +237,6 @@ function event_delete($event_id) {
  */
 function event_store($arr) {
 
-       require_once 'include/datetime.php';
        require_once 'include/items.php';
        require_once 'include/bbcode.php';
 
index 2ff97e9fd617d78122ba6fb265d3404de99e6643..0b8938631ff6248d2afc43b789cbeae3117b6a90 100644 (file)
@@ -16,7 +16,6 @@ use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Temporal;
 
 require_once 'include/bbcode.php';
-require_once 'include/datetime.php';
 require_once 'include/event.php';
 require_once 'include/items.php';
 
index 1ddc8fbad1d6b13ac88191c83c2d5c5174bbeec9..f3969a6f24b87e0d2f46c9162238921b70989c87 100644 (file)
@@ -253,7 +253,6 @@ function install_content(App $a) {
                        return $o;
                }; break;
                case 3: { // Site settings
-                       require_once('include/datetime.php');
                        $dbhost = ((x($_POST, 'dbhost')) ? notags(trim($_POST['dbhost'])) : 'localhost');
                        $dbuser = notags(trim($_POST['dbuser']));
                        $dbpass = notags(trim($_POST['dbpass']));
index fd1ef33a95ee2571e052659701a5ebd987f2dd6b..b10f1571a0e162ea3e40468dcf6c90751455526f 100644 (file)
@@ -9,8 +9,6 @@ use Friendica\Core\System;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Temporal;
 
-require_once 'include/datetime.php';
-
 function localtime_post(App $a)
 {
        $t = $_REQUEST['time'];
index 75d29731be71d7daba16b4c022af40ca00980f5b..73167e6fe0a9f3fdcc363184e0b6e60bf334dd0b 100644 (file)
@@ -11,7 +11,6 @@ use Friendica\Model\User;
 use Friendica\Util\DateTimeFormat;
 
 require_once 'boot.php';
-require_once 'include/datetime.php';
 require_once 'include/enotify.php';
 require_once 'include/text.php';
 
index 87053395c103959335f42c6bbd95e7a7ad9efa92..1bb8f147f9a8f61a2d90066542a4b403ea0d7821 100644 (file)
@@ -18,7 +18,6 @@ use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Temporal;
 use Friendica\Util\XML;
 
-require_once 'include/datetime.php';
 require_once 'include/bbcode.php';
 require_once 'mod/proxy.php';
 require_once 'include/enotify.php';
index 30bc9641f7893b89fcbf21a65d68ce1257f64de4..07092cf180f8163ca1b4812bf7cd8ade8fbd4604 100644 (file)
@@ -10,8 +10,6 @@ use Friendica\Database\DBM;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Mimetype;
 
-require_once 'include/datetime.php';
-
 function wall_attach_post(App $a) {
 
        $r_json = (x($_GET,'response') && $_GET['response']=='json');
index 5cbd567a952c00fa4399dcf408df7b36c6d2ae3e..ed12a89141fdc3a5d075418e62b55b386500e149 100644 (file)
@@ -19,7 +19,6 @@ use Friendica\Util\XML;
 
 require_once 'include/dba.php';
 require_once 'include/html2plain.php';
-require_once 'include/datetime.php';
 require_once 'include/bbcode.php';
 
 /**
index 5e75ba5a54faca6607a8d0a0dadb371486477a31..e543e4baebf92b895e48aac4dc0718a170f9f8ac 100644 (file)
@@ -19,7 +19,6 @@ use Friendica\Util\Network;
 use dba;
 use Exception;
 
-require_once 'include/datetime.php';
 require_once 'include/dba.php';
 require_once 'include/html2bbcode.php';
 
index f9b4c4d6dbddba324d2b4c84d9a47160ca28b4b7..b2e9e1a48734770b4b2ec5a0b9fcf05287eb0eda 100644 (file)
@@ -14,7 +14,6 @@ use Friendica\Util\DateTimeFormat;
 use dba;
 
 require_once 'include/dba.php';
-require_once 'include/datetime.php';
 
 /**
  * Class to handle private messages
index c360a13d09b638a6934b762070ac7eef3c7a4c81..75d898065cdf71b9f6120ae22a9b388ed01bdd1f 100644 (file)
@@ -9,7 +9,6 @@ use Friendica\Util\DateTimeFormat;
 use dba;
 
 require_once 'include/dba.php';
-require_once 'include/datetime.php';
 
 /**
  * @brief functions for interacting with a process
index da7a8b3e58c126740cc73cf21dfe022715c5bec7..3c3cf379a4901497bb5d74fd6e04a89d1f57875b 100644 (file)
@@ -10,7 +10,6 @@ use Friendica\Util\DateTimeFormat;
 use dba;
 
 require_once 'include/dba.php';
-require_once 'include/datetime.php';
 
 class Queue
 {
index 53ab57585f5d6a6261ea91922f66331dae73c6ce..b0b5a4947de4716f49ba87f427711dc19cd619b7 100644 (file)
@@ -17,7 +17,6 @@ use Exception;
 use LightOpenID;
 
 require_once 'boot.php';
-require_once 'include/datetime.php';
 require_once 'include/security.php';
 require_once 'include/text.php';
 
index 1e5c5345f6da0525a1d0e30e386d088bb0997153..bd66f487ac597f2f4d4083f7f1463cf0c8b43b8d 100644 (file)
@@ -34,7 +34,6 @@ use SimpleXMLElement;
 require_once 'include/dba.php';
 require_once 'include/items.php';
 require_once 'include/bb2diaspora.php';
-require_once 'include/datetime.php';
 
 /**
  * @brief This class contain functions to create and send Diaspora XML files
index 7f351ed059226f980e01462828753c38e0beed64..7c1015c9aa526dbef411e29a9b71748fa73c0690 100644 (file)
@@ -23,7 +23,6 @@ use DOMXPath;
 use Exception;
 
 require_once 'include/dba.php';
-require_once 'include/datetime.php';
 require_once 'include/html2bbcode.php';
 
 class PortableContact
index 7c8e5bc0f4ace03b5ad4fd363e4aba049f36a607..ad7b4b7f1a5fa8bdd3b41745255c0a36cf41b2d5 100644 (file)
@@ -17,8 +17,6 @@ Class Cron {
        public static function execute($parameter = '', $generation = 0) {
                global $a;
 
-               require_once 'include/datetime.php';
-
                // Poll contacts with specific parameters
                if (!empty($parameter)) {
                        self::pollContacts($parameter, $generation);
index cf5759e598702af7b41c91adcecb0e48d6729ab8..2bbe529ba99c28aa74c69cfee319e4187e33f5e0 100644 (file)
@@ -14,8 +14,6 @@ Class CronHooks {
        public static function execute($hook = '') {
                global $a;
 
-               require_once 'include/datetime.php';
-
                if (($hook != '') && is_array($a->hooks) && array_key_exists("cron", $a->hooks)) {
                        foreach ($a->hooks["cron"] as $single_hook) {
                                if ($single_hook[1] == $hook) {
index 6dc028ea0ef6a0b4e4f8b2e4b7c76036f83df03f..06e5c614339090d23cfb16974b4d8caa2628db5e 100644 (file)
@@ -25,7 +25,6 @@ class CronJobs
        {
                global $a;
 
-               require_once 'include/datetime.php';
                require_once 'mod/nodeinfo.php';
 
                // No parameter set? So return
index 1a299b072f46986652b82e2544682ce9c7f8176d..0a77f7b5be18b4d26848fe718f633139df2a7bad 100644 (file)
@@ -18,7 +18,6 @@ use Friendica\Protocol\Email;
 use dba;
 
 require_once 'include/html2plain.php';
-require_once 'include/datetime.php';
 require_once 'include/items.php';
 require_once 'include/bbcode.php';
 
index b3f4dab78643b1ac74caae316bf9a0da7e953df3..a5e1e6ee2d3ab04b04a9a3c3fc790dc78709670f 100644 (file)
@@ -14,8 +14,6 @@ use Friendica\Protocol\PortableContact;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Network;
 
-require_once 'include/datetime.php';
-
 class DiscoverPoCo {
        /// @todo Clean up this mess of a parameter hell and split it in several classes
        public static function execute($command = '', $param1 = '', $param2 = '', $param3 = '', $param4 = '')
index ce614e377cb17ea1857d9f0ed72b6dc003cf13b7..cf6e78cb7203d05618a246d6b25b4b61b550905e 100644 (file)
@@ -19,7 +19,6 @@ class Expire {
        public static function execute($param = '', $hook_name = '') {
                global $a;
 
-               require_once 'include/datetime.php';
                require_once 'include/items.php';
 
                Addon::loadHooks();
index bd209b5782f3e5873ae8b81b6bd7defb5959932c..d6c0ae122d12334ddb0a79df5d57e1e8d2e5d2ae 100644 (file)
@@ -11,8 +11,6 @@ use Friendica\Model\GContact;
 use Friendica\Network\Probe;
 use Friendica\Protocol\PortableContact;
 
-require_once 'include/datetime.php';
-
 class GProbe {
        public static function execute($url = '')
        {
index f28b8c68a15d6b6feb4102d310a464044750af2d..2dc5dca581605be853513ac98a1917c1fd8b506c 100644 (file)
@@ -19,7 +19,6 @@ use dba;
 
 require_once 'include/dba.php';
 require_once 'include/html2plain.php';
-require_once 'include/datetime.php';
 require_once 'include/items.php';
 require_once 'include/bbcode.php';
 
index f8ea311c29d31d689b33f8be0e3b0604b5b4085b..42c2774faa6ae3e9a5dd51d26de22a16e62483ef 100644 (file)
@@ -24,7 +24,6 @@ class OnePoll
        public static function execute($contact_id = 0, $command = '') {
                global $a;
 
-               require_once 'include/datetime.php';
                require_once 'include/items.php';
 
                logger('start');
index e73018f5176588d1e0201f60be81d5e706cb56a0..10a83e5c4bf0be0ca2414002909554bb93538146 100644 (file)
@@ -16,7 +16,6 @@ use Friendica\Protocol\Salmon;
 use dba;
 
 require_once 'include/dba.php';
-require_once 'include/datetime.php';
 require_once 'include/items.php';
 require_once 'include/bbcode.php';