We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80337b2 commit 598baa0Copy full SHA for 598baa0
1 file changed
include/issues.php
@@ -30,11 +30,7 @@
30
31
$moduleDirName = \basename(\dirname(__DIR__));
32
33
-if (isset($GLOBALS['xoopsConfig']['language']) && file_exists(dirname(__DIR__) . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/admin.php')) {
34
- include_once dirname(__DIR__) . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/admin.php';
35
-} else {
36
- include_once dirname(__DIR__) . '/language/english/admin.php'; // messages will be in english
37
-}
+xoops_loadLanguage('admin', $moduleDirName);
38
39
//session_start();
40
0 commit comments