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,7 +4,7 @@
*/
namespace Friendica\Render;
use Friendica\Core\Addon;
use Friendica\Core\Hook;
/**
* Smarty implementation of the Friendica template engine interface
@ -39,7 +39,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
"template" => basename($s->filename),
"vars" => $r
];
Addon::callHooks("template_vars", $arr);
Hook::callAll("template_vars", $arr);
$r = $arr['vars'];
foreach ($r as $key => $value) {