Replace deprecated Addon::callHooks with Hook::callAll

- Update documentation
This commit is contained in:
Hypolite Petovan 2018-12-26 01:06:24 -05:00
parent 895b3abf32
commit 55e54bb950
58 changed files with 450 additions and 475 deletions

View file

@ -4,8 +4,8 @@
*/
namespace Friendica\Util;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Protocol\Email;
@ -33,7 +33,7 @@ class Emailer
*/
public static function send($params)
{
Addon::callHooks('emailer_send_prepare', $params);
Hook::callAll('emailer_send_prepare', $params);
$email_textonly = false;
if (!empty($params['uid'])) {
@ -89,7 +89,7 @@ class Emailer
'parameters' => $sendmail_params
];
Addon::callHooks("emailer_send", $hookdata);
Hook::callAll("emailer_send", $hookdata);
$res = mail(
$hookdata['to'],