@@ -113,7 +113,7 @@ public static function cloneFileFolder($path)
113
113
mkdir ($ newPath );
114
114
115
115
// check all files in dir, and process it
116
- if ($ handle == opendir ($ path )) {
116
+ if ($ handle = opendir ($ path )) {
117
117
while (($ file = readdir ($ handle )) !== false ) {
118
118
if ($ file !== '. ' && $ file !== '.. ' && $ file !== '.svn ' ) {
119
119
self ::cloneFileFolder ("{$ path }/ {$ file }" );
@@ -153,7 +153,7 @@ public static function createLogo($dirname)
153
153
// unset($func);
154
154
}
155
155
156
- if (!file_exists ($ imageBase = $ GLOBALS ['xoops ' ]->path ('modules/ ' . $ dirname . '/assets/images/module_logo .png ' )) || !file_exists ($ font = $ GLOBALS ['xoops ' ]->path ('modules/ ' . $ dirname . '/assets/images/VeraBd.ttf ' ))) {
156
+ if (!file_exists ($ imageBase = $ GLOBALS ['xoops ' ]->path ('modules/ ' . $ dirname . '/assets/images/logo .png ' )) || !file_exists ($ font = $ GLOBALS ['xoops ' ]->path ('modules/ ' . $ dirname . '/assets/images/VeraBd.ttf ' ))) {
157
157
return false ;
158
158
}
159
159
@@ -172,7 +172,7 @@ public static function createLogo($dirname)
172
172
$ white = imagecolorallocatealpha ($ imageModule , 255 , 255 , 255 , 127 );
173
173
imagefill ($ imageModule , 0 , 0 , $ white );
174
174
imagecolortransparent ($ imageModule , $ white );
175
- imagepng ($ imageModule , $ GLOBALS ['xoops ' ]->path ('modules/ ' . $ dirname . '/assets/images/module_logo .png ' ));
175
+ imagepng ($ imageModule , $ GLOBALS ['xoops ' ]->path ('modules/ ' . $ dirname . '/assets/images/logo .png ' ));
176
176
imagedestroy ($ imageModule );
177
177
178
178
return true ;
0 commit comments