]> git.mxchange.org Git - friendica.git/commitdiff
Require Cleanup
authorAdam Magness <adam.magness@gmail.com>
Fri, 1 Dec 2017 19:57:13 +0000 (14:57 -0500)
committerAdam Magness <adam.magness@gmail.com>
Fri, 1 Dec 2017 19:57:13 +0000 (14:57 -0500)
Remove instances of require_once for email.php

include/dbstructure.php
include/enotify.php
include/items.php
mod/lostpass.php
src/Worker/Notifier.php

index 05b2bc07cc3fa261a188649658d9c17dcec809f9..297ada0f80a6cff44702d52782ace3b2ecf139b3 100644 (file)
@@ -94,8 +94,8 @@ function update_fail($update_id, $error_message) {
                '$error' => sprintf(t('Update %s failed. See error logs.'), DB_UPDATE_VERSION)
        ));
        $subject=sprintf(t('Update Error at %s'), System::baseUrl());
-       require_once('include/email.php');
-       $subject = Email::emailHeaderEncode($subject,'UTF-8');
+       
+       $subject = Email::emailHeaderEncode($subject,'UTF-8'); // use Friendica\Protocol\Email;
        mail($a->config['admin_email'], $subject, $email_msg,
                'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME']."\n"
                .'Content-type: text/plain; charset=UTF-8'."\n"
index dc030fa8b8985b77ed7a446dafcf864c6869586d..99d5ea0ab3939504f7458cac9a919efe46e613a3 100644 (file)
@@ -8,7 +8,6 @@ use Friendica\Core\System;
 use Friendica\Database\DBM;
 use Friendica\Util\Emailer;
 
-require_once 'include/email.php';
 require_once 'include/bbcode.php';
 require_once 'include/html2bbcode.php';
 
index d446d2773d4c8d4bc0d6bcf24c55d8a33d124d85..7cbcfaaaf53e36536beaf7562e3e38b2bd6b9b31 100644 (file)
@@ -22,7 +22,6 @@ require_once 'include/crypto.php';
 require_once 'include/tags.php';
 require_once 'include/files.php';
 require_once 'include/text.php';
-require_once 'include/email.php';
 require_once 'include/threads.php';
 require_once 'include/plaintext.php';
 require_once 'include/feed.php';
index 1a30effd4eba82e3b7fdc9d819bd76fe7b965112..b3304fda12bba312b3149025bb21f3f8c76b2107 100644 (file)
@@ -1,12 +1,13 @@
 <?php
-
+/**
+ * @file mod/lostpass.php
+ */
 use Friendica\App;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 
-require_once('include/email.php');
-require_once('include/enotify.php');
-require_once('include/text.php');
+require_once 'include/enotify.php';
+require_once 'include/text.php';
 
 function lostpass_post(App $a) {
 
index b261b32fc0444b2ecf657026bbbfe2756cbe506f..e64351f17d0e69b7e5329ffeeece8dc04ba11124 100644 (file)
@@ -19,7 +19,6 @@ require_once 'include/salmon.php';
 require_once 'include/datetime.php';
 require_once 'include/items.php';
 require_once 'include/bbcode.php';
-require_once 'include/email.php';
 
 /*
  * This file was at one time responsible for doing all deliveries, but this caused