Renamed hook

pull/1428/head
Michael 2023-10-01 04:14:10 +00:00 committed by Hypolite Petovan
parent 0eda161e04
commit 80ce855189
1 changed files with 2 additions and 2 deletions

View File

@ -12,10 +12,10 @@ use Friendica\DI;
function cld_install() 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())) { if (!in_array('cld2', get_loaded_extensions())) {
Logger::warning('CLD2 is not installed.'); Logger::warning('CLD2 is not installed.');