mirror of
https://github.com/friendica/friendica
synced 2025-04-24 12:30:10 +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,12 +4,11 @@
|
|||
*/
|
||||
namespace Friendica\Util;
|
||||
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Network\CurlResult;
|
||||
use Friendica\Util\Strings;
|
||||
use DOMDocument;
|
||||
use DomXPath;
|
||||
|
||||
|
@ -533,7 +532,7 @@ class Network
|
|||
$avatar['url'] = '';
|
||||
$avatar['success'] = false;
|
||||
|
||||
Addon::callHooks('avatar_lookup', $avatar);
|
||||
Hook::callAll('avatar_lookup', $avatar);
|
||||
|
||||
if (! $avatar['success']) {
|
||||
$avatar['url'] = System::baseUrl() . '/images/person-300.jpg';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue