Skip to content

Commit 4e2c996

Browse files
committed
Ggoffy changes
1 parent 1903ab5 commit 4e2c996

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

publisher/admin/clone.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static function cloneFileFolder($path)
113113
mkdir($newPath);
114114

115115
// check all files in dir, and process it
116-
if ($handle == opendir($path)) {
116+
if ($handle = opendir($path)) {
117117
while (($file = readdir($handle)) !== false) {
118118
if ($file !== '.' && $file !== '..' && $file !== '.svn') {
119119
self::cloneFileFolder("{$path}/{$file}");
@@ -153,7 +153,7 @@ public static function createLogo($dirname)
153153
// unset($func);
154154
}
155155

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'))) {
157157
return false;
158158
}
159159

@@ -172,7 +172,7 @@ public static function createLogo($dirname)
172172
$white = imagecolorallocatealpha($imageModule, 255, 255, 255, 127);
173173
imagefill($imageModule, 0, 0, $white);
174174
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'));
176176
imagedestroy($imageModule);
177177

178178
return true;

publisher/docs/changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
<h5>1.02 RC5 (2015-12-23)</h5>
1+
<h5>1.02 RC5 (2015-12-24)</h5>
22
- fixed bug: wrong options in Latest News block (mamba)
33
- added "All" checkbox in Category for group permissions (mamba)
4+
- fixes in clone.php (ggoffy)
45

56
<h5>1.02 RC4 (NOT RELEASED)</h5>
67
- fix issues with Popeye images (mamba)

publisher/item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
if (!(publisherUserIsAdmin() || publisherUserIsModerator($itemObj))) {
177177
$hasFilePermissions = false;
178178
}
179-
if (null != $filesObj) {
179+
if (null !== $filesObj) {
180180
foreach ($filesObj as $fileObj) {
181181
$file = array();
182182
$file['mod'] = false;

0 commit comments

Comments
 (0)