|
@@ -25,7 +25,7 @@ discard block |
|
|
block discarded – undo |
|
25
|
25
|
//include_once XOOPS_ROOT_PATH . '/modules/TDMCreate/include/common.php'; |
|
26
|
26
|
|
|
27
|
27
|
if (function_exists($_GET['f'])) { // get function name and parameter $_GET['f']($_GET["p"]); |
|
28
|
|
- include_once __DIR__ . '/logoGenerator.php'; |
|
|
28
|
+ include_once __DIR__.'/logoGenerator.php'; |
|
29
|
29
|
$ret = logoGenerator::createLogo($_GET['iconName'], $_GET['caption']); |
|
30
|
30
|
phpFunction($ret); |
|
31
|
31
|
} else { |
|
@@ -83,7 +83,7 @@ discard block |
|
|
block discarded – undo |
|
83
|
83
|
|
|
84
|
84
|
// Write text |
|
85
|
85
|
$textColor = imagecolorallocate($imageModule, 0, 0, 0); |
|
86
|
|
- $spaceToBorder = (92 - strlen($moduleName) * 7.5) / 2; |
|
|
86
|
+ $spaceToBorder = (92-strlen($moduleName) * 7.5) / 2; |
|
87
|
87
|
imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, $moduleName, []); |
|
88
|
88
|
|
|
89
|
89
|
imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32); |
Please login to merge, or discard this patch.