Merge pull request #451 from annando/emailer

Addons hadn't been changed for the moved emailer class
This commit is contained in:
Hypolite Petovan 2017-11-22 18:39:39 -05:00 committed by GitHub
commit 800d15e40a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,5 @@
<?php
use Friendica\Util\Emailer;
require_once('include/security.php');
@ -285,7 +286,6 @@ function dav_cron(&$a, &$b)
'textVersion' => $text_text,
'additionalMailHeader' => "",
);
require_once('include/Emailer.php');
Emailer::send($params);
}
break;

View File

@ -9,7 +9,7 @@
* Author: Rabuzarus <https://friendica.kommune4.de/profile/rabuzarus> (Port to Friendica)
*/
require_once('include/Emailer.php');
use Friendica\Util\Emailer;
function notifyall_install() {
logger("installed notifyall");

View File

@ -8,8 +8,7 @@
use Friendica\App;
use Friendica\Core\PConfig;
require_once 'include/Emailer.php';
use Friendica\Util\Emailer;
/* because the fraking openpgp-php is in composer, require libs in composer
* and then don't use autoloader to load classes... */