Renamed hook
This commit is contained in:
parent
0eda161e04
commit
80ce855189
1 changed files with 2 additions and 2 deletions
|
@ -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.');
|
||||
|
|
Loading…
Reference in a new issue