@@ -104,8 +104,8 @@ private function getAdminHeader($moduleDirname)
104104 $ ret .= $ this ->xc ->getXcEqualsOperator ('$sysPathIcon16 ' , "'../' . {$ sysicons16 }" );
105105 $ ret .= $ this ->xc ->getXcEqualsOperator ('$sysPathIcon32 ' , "'../' . {$ sysicons32 }" );
106106 $ ret .= $ this ->xc ->getXcEqualsOperator ('$pathModuleAdmin ' , $ dirmoduleadmin );
107- $ ret .= $ this ->xc ->getXcEqualsOperator ('$modPathIcon16 ' , $ modicons16 );
108- $ ret .= $ this ->xc ->getXcEqualsOperator ('$modPathIcon32 ' , $ modicons32 );
107+ $ ret .= $ this ->xc ->getXcEqualsOperator ('$modPathIcon16 ' , "{ $ stuModuleDirname } _URL . '/' . { $ modicons16} . '/' " );
108+ $ ret .= $ this ->xc ->getXcEqualsOperator ('$modPathIcon32 ' , "{ $ stuModuleDirname } _URL . '/' . { $ modicons32} . '/' " );
109109 if (is_object ($ table ) && '' != $ table ->getVar ('table_name ' )) {
110110 $ ret .= $ this ->pc ->getBlankLine ();
111111 $ ret .= $ this ->pc ->getPhpCodeCommentLine ('Get instance of module ' );
@@ -122,11 +122,6 @@ private function getAdminHeader($moduleDirname)
122122 $ template = $ this ->pc ->getPhpCodeIncludeDir ('XOOPS_ROOT_PATH ' , 'class/template ' , true , false , 'include ' , "\t" );
123123 $ template .= $ this ->xc ->getXcEqualsOperator ('$xoopsTpl ' , 'new \XoopsTpl() ' , null , false , "\t" );
124124 $ ret .= $ this ->pc ->getPhpCodeConditions ('!isset($xoopsTpl) ' , ' || ' , '!is_object($xoopsTpl) ' , $ template , false );
125- $ ret .= $ this ->pc ->getPhpCodeCommentLine ('System icons path ' );
126- $ ret .= $ this ->xc ->getXcTplAssign ('sysPathIcon16 ' , '$sysPathIcon16 ' );
127- $ ret .= $ this ->xc ->getXcTplAssign ('sysPathIcon32 ' , '$sysPathIcon32 ' );
128- $ ret .= $ this ->xc ->getXcTplAssign ('modPathIcon16 ' , '$modPathIcon16 ' );
129- $ ret .= $ this ->xc ->getXcTplAssign ('modPathIcon32 ' , '$modPathIcon32 ' );
130125 $ ret .= $ this ->pc ->getBlankLine ();
131126 $ ret .= $ this ->pc ->getPhpCodeCommentLine ('Load languages ' );
132127 $ ret .= $ this ->xc ->getXcLoadLanguage ('admin ' );
@@ -141,6 +136,13 @@ private function getAdminHeader($moduleDirname)
141136 $ ret .= $ this ->pc ->getPhpCodeConditions ($ fileExists , '' , '' , $ moduleadmin , $ redirectHeader );
142137 $ ret .= $ this ->pc ->getBlankLine ();
143138 $ ret .= $ this ->xc ->getXcCPHeader ();
139+ $ ret .= $ this ->pc ->getBlankLine ();
140+ $ ret .= $ this ->pc ->getPhpCodeCommentLine ('System icons path ' );
141+ $ ret .= $ this ->xc ->getXcTplAssign ('sysPathIcon16 ' , '$sysPathIcon16 ' );
142+ $ ret .= $ this ->xc ->getXcTplAssign ('sysPathIcon32 ' , '$sysPathIcon32 ' );
143+ $ ret .= $ this ->xc ->getXcTplAssign ('modPathIcon16 ' , '$modPathIcon16 ' );
144+ $ ret .= $ this ->xc ->getXcTplAssign ('modPathIcon32 ' , '$modPathIcon32 ' );
145+ $ ret .= $ this ->pc ->getBlankLine ();
144146 $ ret .= $ this ->xc ->getXcEqualsOperator ('$adminObject ' , '\Xmf\Module\Admin::getInstance() ' );
145147 $ ret .= $ this ->getSimpleString ("\$style = {$ stuModuleDirname }_URL . '/assets/css/admin/style.css'; " );
146148
0 commit comments