https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eda161
)
Renamed hook
author
Michael
<heluecht@pirati.ca>
Sun, 1 Oct 2023 04:14:10 +0000
(
04:14
+0000)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 7 Oct 2023 05:07:00 +0000
(07:07 +0200)
cld/cld.php
patch
|
blob
|
history
diff --git
a/cld/cld.php
b/cld/cld.php
index
56bca64
..
54e7a73
100644
(file)
--- 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.');