Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
fix is_language_pack_installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Jul 8, 2024
1 parent ada9c37 commit 56a9bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opt/adler/moodle/adler_setup/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function create_default_course_category_for_user($username) {
*/
function is_language_pack_installed(string $language_code): bool {
$installed_langs = get_string_manager()->get_list_of_translations();
return str_contains($installed_langs, "($language_code)");
return str_contains(implode('', $installed_langs), "($language_code)");
}

/**
Expand Down

0 comments on commit 56a9bed

Please sign in to comment.