diff --git a/htdocs/core/modules/dons/html_generic.modules.php b/htdocs/core/modules/dons/html_generic.modules.php
index bfefe38d959..399429504c1 100644
--- a/htdocs/core/modules/dons/html_generic.modules.php
+++ b/htdocs/core/modules/dons/html_generic.modules.php
@@ -72,6 +72,7 @@ class html_generic extends ModeleDon
private function loadTranslationFiles($outputlangs)
{
if (!is_object($outputlangs)) {
+ global $langs;
$outputlangs = $langs;
}