Skip to content

Commit 32dae10

Browse files
committed
proper language load
1 parent 6d54d45 commit 32dae10

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

class/Files/Admin/AdminHeader.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ private function getAdminHeader($moduleDirname)
124124
$ret .= $this->pc->getPhpCodeConditions('!isset($xoopsTpl)', ' || ', '!\is_object($xoopsTpl)', $template, false);
125125
$ret .= $this->pc->getPhpCodeBlankLine();
126126
$ret .= $this->pc->getPhpCodeCommentLine('Load languages');
127-
$ret .= $this->xc->getXcXoopsLoadLanguage('admin');
128-
$ret .= $this->xc->getXcXoopsLoadLanguage('modinfo');
127+
$ret .= $this->xc->getXcXoopsLoadLanguage('admin', '', $moduleDirname);
128+
$ret .= $this->xc->getXcXoopsLoadLanguage('modinfo', '', $moduleDirname);
129+
$ret .= $this->pc->getPhpCodeCommentLine($this->xc->getXcXoopsLoadLanguage('main', '', $moduleDirname));
129130
$ret .= $this->pc->getPhpCodeBlankLine();
130131
$ret .= $this->pc->getPhpCodeCommentLine('Local admin menu class');
131132
$xoopsPathCond = $this->xc->getXcXoopsPath('$pathModuleAdmin', 'moduleadmin', true);

0 commit comments

Comments
 (0)