Require Cleanup
Remove instances of require_once for email.php
This commit is contained in:
parent
6008e3df11
commit
f21feb975d
|
@ -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"
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue