Skip to content

Commit 0182640

Browse files
committed
cosmetics
1 parent 14736a4 commit 0182640

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

admin/addfiles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
}
109109

110110
$GLOBALS['xoopsTpl']->assign('error', $addfilesObj->getHtmlErrors());
111-
$form = &$addfilesObj->getFormAddFiles();
111+
$form = $addfilesObj->getFormAddFiles();
112112
$GLOBALS['xoopsTpl']->assign('form', $form->render());
113113
break;
114114
case 'edit':

class/Files/CreateFile.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public function getStrToLower($string)
425425
*/
426426
public function getInclude($filename = 'header')
427427
{
428-
return "include __DIR__ . '/{$filename}.php';\n";
428+
return "require __DIR__ . '/{$filename}.php';\n";
429429
}
430430

431431
/**
@@ -435,7 +435,7 @@ public function getInclude($filename = 'header')
435435
*/
436436
public function getIncludeOnce($filename = 'header')
437437
{
438-
return "include_once __DIR__ . '/{$filename}.php';\n";
438+
return "require_once __DIR__ . '/{$filename}.php';\n";
439439
}
440440

441441
/**
@@ -502,13 +502,13 @@ public function getHeaderFilesComments($module, $fileName, $noPhpFile = null)
502502
$copyright = [
503503
$name => 'module for xoops',
504504
'' => '',
505-
'@copyright ' => ' module for xoops',
505+
'@copyright ' => ' 2020 XOOPS Project (https://xooops.org)',
506506
'@license ' => " {$license}",
507507
'@package ' => " {$dirname}",
508508
'@since ' => " {$since}",
509509
'@min_xoops ' => " {$minXoops}",
510510
'@author ' => " {$author} - Email:<{$authorMail}> - Website:<{$authorWebsiteUrl}>",
511-
'@version ' => " \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$",
511+
// '@version ' => " \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$",
512512
];
513513
$ret .= Tdmcreate\Files\CreatePhpCode::getInstance()->getPhpCodeCommentMultiLine($copyright);
514514

class/Files/Includes/IncludeNotifications.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ function {$moduleDirname}_notify_iteminfo(\$category, \$item_id)
119119
\$configHandler = xoops_getHandler('config');
120120
\$config =& \$configHandler->getConfigsByCat(0, \$module->getVar('mid'));
121121
} else {
122-
\$module =& \$xoopsModule;
123-
\$config =& \$xoopsModuleConfig;
122+
\$module = \$xoopsModule;
123+
\$config = \$xoopsModuleConfig;
124124
}
125125
//
126126
switch(\$category) {

sql/mysql.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ CREATE TABLE `tdmcreate_settings` (
6060

6161
INSERT INTO `tdmcreate_settings` (`set_id`, `set_name`, `set_dirname`, `set_version`, `set_since`, `set_min_php`, `set_min_xoops`, `set_min_admin`, `set_min_mysql`, `set_description`, `set_author`, `set_author_mail`, `set_author_website_url`, `set_author_website_name`, `set_credits`, `set_license`, `set_release_info`, `set_release_file`, `set_manual`, `set_manual_file`, `set_image`, `set_demo_site_url`, `set_demo_site_name`, `set_support_url`, `set_support_name`, `set_website_url`, `set_website_name`, `set_release`, `set_status`, `set_admin`, `set_user`, `set_blocks`, `set_search`, `set_comments`, `set_notifications`, `set_permissions`, `set_inroot_copy`, `set_donations`, `set_subversion`, `set_type`)
6262
VALUES
63-
(1, 'My Module', 'mymoduledirname', '1.0', '1.0', '5.5', '2.5.9', '1.2', '5.5', 'This module is for doing following...', 'TDM XOOPS', 'info@email.com', 'http://xoops.org', 'XOOPS Project', 'XOOPS Development Team', 'GPL 3.0 or later', 'release_info', 'release_info file', 'link to manual file',
63+
(1, 'My Module', 'mymoduledirname', '1.0', '1.0', '5.6', '2.5.9', '1.2', '5.6', 'This module is for doing following...', 'TDM XOOPS', 'info@email.com', 'http://xoops.org', 'XOOPS Project', 'XOOPS Development Team', 'GPL 2.0 or later', 'release_info', 'release_info file', 'link to manual file',
6464
'install.txt', 'empty.png', 'https://xoops.org', 'XOOPS Demo Site', 'https://xoops.org/modules/newbb', 'Support Forum', 'www.xoops.org', 'XOOPS Project',
6565
'2017-12-02', 'Beta 1', '1', '1', '1', '0', '0', '0', '0', '0', '6KJ7RW5DR3VTJ', '13070', 1);
6666

0 commit comments

Comments
 (0)