From 80ce8551892ab7cbe7a16f40c1a019a05815353f Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 1 Oct 2023 04:14:10 +0000 Subject: [PATCH] Renamed hook --- cld/cld.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.'); -- 2.39.5