diff --git a/dav/friendica/main.php b/dav/friendica/main.php index 05f6f7140..006dce957 100644 --- a/dav/friendica/main.php +++ b/dav/friendica/main.php @@ -1,4 +1,5 @@ $text_text, 'additionalMailHeader' => "", ); - require_once('include/Emailer.php'); Emailer::send($params); } break; diff --git a/notifyall/notifyall.php b/notifyall/notifyall.php index 3f2cdc890..594a7540d 100644 --- a/notifyall/notifyall.php +++ b/notifyall/notifyall.php @@ -9,7 +9,7 @@ * Author: Rabuzarus (Port to Friendica) */ -require_once('include/Emailer.php'); +use Friendica\Util\Emailer; function notifyall_install() { logger("installed notifyall"); diff --git a/securemail/securemail.php b/securemail/securemail.php index 953766962..011e60da8 100644 --- a/securemail/securemail.php +++ b/securemail/securemail.php @@ -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... */