mirror of
https://github.com/friendica/friendica
synced 2025-04-27 19:10:11 +00:00
Replace deprecated Addon::callHooks with Hook::callAll
- Update documentation
This commit is contained in:
parent
895b3abf32
commit
55e54bb950
58 changed files with 450 additions and 475 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue