X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Facl.php;h=03cb1ad63e294f2e58232079ea693d471e07e0eb;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=9f93b76a9b5bd88686d267e7c590d081ffac8cae;hpb=c4038e7af15442d8bca8c7d7818ffbb9b02a0521;p=friendica.git diff --git a/mod/acl.php b/mod/acl.php index 9f93b76a9b..03cb1ad63e 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -5,7 +5,7 @@ use Friendica\App; use Friendica\Content\Widget; use Friendica\Core\ACL; -use Friendica\Core\Addon; +use Friendica\Core\Hook; use Friendica\Core\Logger; use Friendica\Core\Protocol; use Friendica\Database\DBA; @@ -34,7 +34,7 @@ function acl_content(App $a) $search = $_REQUEST['query']; } - Logger::log("Searching for ".$search." - type ".$type." conversation ".$conv_id, Logger::DEBUG); + Logger::info('ACL {action} - {subaction}', ['module' => 'acl', 'action' => 'content', 'subaction' => 'search', 'search' => $search, 'type' => $type, 'conversation' => $conv_id]); if ($search != '') { $sql_extra = "AND `name` LIKE '%%" . DBA::escape($search) . "%%'"; @@ -305,7 +305,7 @@ function acl_content(App $a) 'search' => $search, ]; - Addon::callHooks('acl_lookup_end', $results); + Hook::callAll('acl_lookup_end', $results); $o = [ 'tot' => $results['tot'],