From: Michael Date: Sun, 1 Oct 2023 04:14:10 +0000 (+0000) Subject: Renamed hook X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80ce8551892ab7cbe7a16f40c1a019a05815353f;p=friendica-addons.git Renamed hook --- diff --git a/cld/cld.php b/cld/cld.php index 56bca64f..54e7a73e 100644 --- a/cld/cld.php +++ b/cld/cld.php @@ -12,10 +12,10 @@ use Friendica\DI; function cld_install() { - Hook::register('get_language', 'addon/cld/cld.php', 'cld_get_language'); + Hook::register('detect_languages', 'addon/cld/cld.php', 'cld_detect_languages'); } -function cld_get_language(array &$data) +function cld_detect_languages(array &$data) { if (!in_array('cld2', get_loaded_extensions())) { Logger::warning('CLD2 is not installed.');