Skip to content

Commit 028e392

Browse files
committed
update modulbuilder itself
1 parent da685c4 commit 028e392

37 files changed

Lines changed: 333 additions & 337 deletions

admin/building.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
$cachePath = \XOOPS_VAR_PATH . '/caches/modulebuilder_cache_';
4040
if (!\is_dir($cachePath)) {
41-
if (!\mkdir($cachePath, 0777) && !\is_dir($cachePath)) {
41+
if (!\mkdir($cachePath) && !\is_dir($cachePath)) {
4242
throw new \RuntimeException(\sprintf('Directory "%s" was not created', $cachePath));
4343
}
4444
\chmod($cachePath, 0777);

admin/devtools.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
$regexFiles = new RegexIterator($Iterator, '/^.+\.(php|tpl)$/i', RecursiveRegexIterator::GET_MATCH);
8686
//$files = new RegexIterator($flattened, '#^(?:[A-Z]:)?(?:/(?!\.Trash)[^/]+)+/[^/]+\.(?:php|html)$#Di');
8787
$modfiles = [];
88-
foreach ($regexFiles as $regexFiles) {
89-
$file = str_replace('\\', '/', $regexFiles[0]);
88+
foreach ($regexFiles as $regexFile) {
89+
$file = str_replace('\\', '/', $regexFile[0]);
9090
if (!\in_array($file, $langfiles)) {
9191
$modfiles[] = $file;
9292
}

admin/fields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
if ($order > 0) {
210210
$fieldOrder = $fieldsObj->get($order);
211211
$fieldOrder->setVar('field_order', $i);
212-
if (!$fieldsObj->insert($fieldOrder)) {
212+
if (!$fieldsObj->insert()) {
213213
$error = true;
214214
}
215215
++$i;

admin/logo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/**
3636
* @param string $val
3737
*/
38-
function phpFunction($val = ''): void
38+
function phpFunction(string $val = ''): void
3939
{
4040
// create php function here
4141
echo $val;

admin/modules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
'mod_subversion' => Request::getString('mod_subversion', '', 'POST'),
168168
]
169169
);
170-
$moduleOption = Request::getArray('module_option', []);
170+
$moduleOption = Request::getArray('module_option');
171171
$modulesObj->setVar('mod_admin', \in_array('admin', $moduleOption));
172172
$modulesObj->setVar('mod_user', \in_array('user', $moduleOption));
173173
$modulesObj->setVar('mod_blocks', \in_array('blocks', $moduleOption));

admin/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
'set_subversion' => \Xmf\Request::getString('set_subversion', '', 'POST'),
124124
]
125125
);
126-
$settingOption = \Xmf\Request::getArray('setting_option', []);
126+
$settingOption = \Xmf\Request::getArray('setting_option');
127127
$settingsObj->setVar('set_admin', \in_array('admin', $settingOption));
128128
$settingsObj->setVar('set_user', \in_array('user', $settingOption));
129129
$settingsObj->setVar('set_blocks', \in_array('blocks', $settingOption));

admin/tables.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
}
164164
$tablesObj->setVar('table_autoincrement', (1 == $_REQUEST['table_autoincrement']) ? 1 : 0);
165165
// Options
166-
$tableOption = \Xmf\Request::getArray('table_option', []);
166+
$tableOption = \Xmf\Request::getArray('table_option');
167167
$tablesObj->setVar('table_install', \in_array('install', $tableOption));
168168
$tablesObj->setVar('table_index', \in_array('index', $tableOption));
169169
$tablesObj->setVar('table_blocks', \in_array('blocks', $tableOption));
@@ -245,7 +245,7 @@
245245
if ($order > 0) {
246246
$tableOrder = $tablesObj->get($order);
247247
$tableOrder->setVar('table_order', $i);
248-
if (!$tablesObj->insert($tableOrder)) {
248+
if (!$tablesObj->insert()) {
249249
$error = true;
250250
}
251251
++$i;

assets/css/admin/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ img.imageToggle {
183183
.portlet {
184184
margin: 0 0.1em 1em 0;
185185
padding: 0 0.3em;
186+
min-width: 250px;
186187
}
187188

188189
.portlet-header {

docs/changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<h5>3.7.1 Alpha [2026-04-05]</h5> Dev: XOOPS 2.5.11 Stable, PHP 8.0
2+
- updated creation code to generate module with no errors from coderabbitai (goffy)
3+
- checked modulebuilder code by PHPStorm > Inspect code (goffy)
4+
15
<h5>3.7.0 RC1 [2024-02-01]</h5> Dev: XOOPS 2.5.11 Stable, PHP 8.0
26
- updated version check for XOOPS 2.5.11 Stable (goffy)
37
- moved to singular table names (mamba/goffy)
@@ -15,6 +19,8 @@
1519
- added field prefix again (goffy)
1620
- fixed bug in block links (goffy)
1721
- fixed bug with short text in block (goffy)
22+
- changed admin tables default class to outer (goffy)
23+
- fixed bug with add stylesheet in admin/header (goffy)
1824

1925
<h5>3.7.0 Alpha [2023-07-06]</h5> Dev: XOOPS 2.5.11 RC2, PHP 8.0
2026
- implemented smarty 3 (zivXP/goffy)

docs/license.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
5454
POSSIBILITY OF SUCH DAMAGE.
5555

5656
This software was created to be free of defects and is designed to
57-
function on PC computers only. While this software has been tested
57+
function on PC only. While this software has been tested
5858
and proven to run accurately, in the unlikely event of any user or
5959
computer incompatibility issues, the end user assumes complete
6060
liability of usage. This software contains no adware, scumware or

0 commit comments

Comments
 (0)