| @@ 29-32 (lines=4) @@ | ||
| 26 | /** @var Xmf\Module\Admin $adminObject */ |
|
| 27 | $adminObject = \Xmf\Module\Admin::getInstance(); |
|
| 28 | ||
| 29 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
|
| 30 | require_once $GLOBALS['xoops']->path('class/template.php'); |
|
| 31 | $xoopsTpl = new XoopsTpl(); |
|
| 32 | } |
|
| 33 | ||
| 34 | $pathIcon16 = Xmf\Module\Admin::iconUrl('', 16); |
|
| 35 | $pathIcon32 = Xmf\Module\Admin::iconUrl('', 32); |
|
| @@ 49-52 (lines=4) @@ | ||
| 46 | $instruction = Instruction::getInstance(); |
|
| 47 | $instruction->loadLanguage('common'); |
|
| 48 | ||
| 49 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
|
| 50 | require_once $GLOBALS['xoops']->path('class/template.php'); |
|
| 51 | $xoopsTpl = new XoopsTpl(); |
|
| 52 | } |
|
| 53 | ||
| 54 | $moduleDirName = basename(dirname(__DIR__)); |
|
| 55 | $GLOBALS['xoopsTpl']->assign('mod_url', XOOPS_URL . '/modules/' . $moduleDirName); |
|