]> git.mxchange.org Git - friendica-addons.git/commitdiff
Renamed hook
authorMichael <heluecht@pirati.ca>
Sun, 1 Oct 2023 04:14:10 +0000 (04:14 +0000)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 7 Oct 2023 05:07:00 +0000 (07:07 +0200)
cld/cld.php

index 56bca64f771a99f7cf4ba93efd3d9d5d78660359..54e7a73e4178c30d5c4ad7f919f83bcdfbea16b9 100644 (file)
@@ -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.');