Completed
Pull Request — master (#144)
by Michael
03:08
created
preloads/autoloader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@  discard block
 block discarded – undo
4 4
  * @see http://www.php-fig.org/psr/psr-4/examples/
5 5
  */
6 6
 spl_autoload_register(
7
-    static function ($class) {
7
+    static function($class) {
8 8
         // project-specific namespace prefix
9
-        $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__)));
9
+        $prefix = 'XoopsModules\\'.ucfirst(basename(dirname(__DIR__)));
10 10
 
11 11
         // base directory for the namespace prefix
12
-        $baseDir = __DIR__ . '/../class/';
12
+        $baseDir = __DIR__.'/../class/';
13 13
 
14 14
         // does the class use the namespace prefix?
15 15
         $len = mb_strlen($prefix);
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         // replace the namespace prefix with the base directory, replace namespace
25 25
         // separators with directory separators in the relative class name, append
26 26
         // with .php
27
-        $file = $baseDir . str_replace('\\', '/', $relativeClass) . '.php';
27
+        $file = $baseDir.str_replace('\\', '/', $relativeClass).'.php';
28 28
 
29 29
         // if the file exists, require it
30 30
         if (file_exists($file)) {
Please login to merge, or discard this patch.
admin/building.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,16 +25,16 @@  discard block
 block discarded – undo
25 25
  */
26 26
 $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_building.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 $op        = \Xmf\Request::getString('op', 'default');
30 30
 $mid       = \Xmf\Request::getInt('mod_id');
31 31
 $moduleObj = $helper->getHandler('Modules')->get($mid);
32
-$cachePath = XOOPS_VAR_PATH . '/caches/tdmcreate_cache';
32
+$cachePath = XOOPS_VAR_PATH.'/caches/tdmcreate_cache';
33 33
 // Clear cache
34
-if (file_exists($cache = $cachePath . '/classpaths.cache')) {
34
+if (file_exists($cache = $cachePath.'/classpaths.cache')) {
35 35
     unlink($cache);
36 36
 }
37
-if (!file_exists($indexFile = $cachePath . '/index.html')) {
37
+if (!file_exists($indexFile = $cachePath.'/index.html')) {
38 38
     copy('index.html', $indexFile);
39 39
 }
40 40
 // Switch option
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
         // Get var module dirname
46 46
         $moduleDirname = $moduleObj->getVar('mod_dirname');
47 47
         // Directories for copy from to
48
-        $fromDir = TDMC_UPLOAD_REPOSITORY_PATH . '/' . mb_strtolower($moduleDirname);
49
-        $toDir   = XOOPS_ROOT_PATH . '/modules/' . mb_strtolower($moduleDirname);
48
+        $fromDir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.mb_strtolower($moduleDirname);
49
+        $toDir   = XOOPS_ROOT_PATH.'/modules/'.mb_strtolower($moduleDirname);
50 50
         // include_once TDMC_CLASS_PATH . '/building.php';
51 51
         if (isset($moduleDirname)) {
52 52
             // Clear this module if it's in repository
@@ -108,4 +108,4 @@  discard block
 block discarded – undo
108 108
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
109 109
         break;
110 110
 }
111
-include __DIR__ . '/footer.php';
111
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/feedback.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 use Xmf\Request;
23 23
 
24
-include __DIR__ . '/header.php';
24
+include __DIR__.'/header.php';
25 25
 
26 26
 $adminObject = \Xmf\Module\Admin::getInstance();
27 27
 
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
         $fb_content = Request::getText('fb_content', '');
61 61
         $fb_content = str_replace(["\r\n", "\n", "\r"], '<br>', $fb_content); //clean line break from dhtmltextarea
62 62
 
63
-        $title       = constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_FOR') . $GLOBALS['xoopsModule']->getVar('dirname');
64
-        $body        = constant('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME') . ': ' . $your_name . '<br>';
65
-        $body        .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL') . ': ' . $your_mail . '<br>';
66
-        $body        .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE') . ': ' . $your_site . '<br>';
67
-        $body        .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE') . ': ' . $fb_type . '<br><br>';
68
-        $body        .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_CONTENT') . ':<br>';
63
+        $title       = constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_FOR').$GLOBALS['xoopsModule']->getVar('dirname');
64
+        $body        = constant('CO_'.$moduleDirNameUpper.'_'.'FB_NAME').': '.$your_name.'<br>';
65
+        $body        .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL').': '.$your_mail.'<br>';
66
+        $body        .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_SITE').': '.$your_site.'<br>';
67
+        $body        .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE').': '.$fb_type.'<br><br>';
68
+        $body        .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_CONTENT').':<br>';
69 69
         $body        .= $fb_content;
70 70
         $xoopsMailer = xoops_getMailer();
71 71
         $xoopsMailer->useMail();
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $xoopsMailer->setBody($body);
78 78
         $ret = $xoopsMailer->send();
79 79
         if ($ret) {
80
-            redirect_header('index.php', 3, constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_SUCCESS'));
80
+            redirect_header('index.php', 3, constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_SUCCESS'));
81 81
         }
82 82
 
83 83
         // show form with content again
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
         $feedback->type    = $fb_type;
88 88
         $feedback->content = $fb_content;
89 89
         echo '<div align="center" style="width: 80%; padding: 10px; border: 2px solid #ff0000; color: #ff0000; margin-right:auto;margin-left:auto;">
90
-            <h3>' . constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_ERROR') . '</h3>
90
+            <h3>' . constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_ERROR').'</h3>
91 91
             </div>';
92 92
         $form = $feedback->getFormFeedback();
93 93
         $form->display();
94 94
 
95 95
         break;
96 96
 }
97
-require __DIR__ . '/footer.php';
97
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/modules.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  */
25 25
 $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_modules.tpl';
26 26
 
27
-include __DIR__ . '/header.php';
27
+include __DIR__.'/header.php';
28 28
 // Recovered value of argument op in the URL $
29 29
 $op = \Xmf\Request::getString('op', 'list');
30 30
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
45 45
         $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
46 46
         $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
47
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
47
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
48 48
         $modulesCount = $helper->getHandler('Modules')->getCountModules();
49 49
         $modulesAll   = $helper->getHandler('Modules')->getAllModules($start, $limit);
50 50
         // Redirect if there aren't modules
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
                 unset($module);
60 60
             }
61 61
             if ($modulesCount > $limit) {
62
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
63
-                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
62
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
63
+                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
64 64
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
65 65
             }
66 66
         } else {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             ]
115 115
         );
116 116
         //Form mod_image
117
-        include_once XOOPS_ROOT_PATH . '/class/uploader.php';
117
+        include_once XOOPS_ROOT_PATH.'/class/uploader.php';
118 118
         $uploader = new \XoopsMediaUploader(
119 119
             TDMC_UPLOAD_IMGMOD_PATH, $helper->getConfig('mimetypes'), $helper->getConfig('maxsize'), null, null
120 120
         );
@@ -200,9 +200,9 @@  discard block
 block discarded – undo
200 200
         if ($id > 0) {
201 201
             $modulesObj = $helper->getHandler('Modules')->get($id);
202 202
             foreach ($modFieldArray as $moduleField) {
203
-                if (isset($_POST['mod_' . $moduleField])) {
204
-                    $modField = $modulesObj->getVar('mod_' . $moduleField);
205
-                    $modulesObj->setVar('mod_' . $moduleField, !$modField);
203
+                if (isset($_POST['mod_'.$moduleField])) {
204
+                    $modField = $modulesObj->getVar('mod_'.$moduleField);
205
+                    $modulesObj->setVar('mod_'.$moduleField, !$modField);
206 206
                 }
207 207
             }
208 208
             if ($helper->getHandler('Modules')->insert($modulesObj)) {
@@ -213,4 +213,4 @@  discard block
 block discarded – undo
213 213
         break;
214 214
 }
215 215
 
216
-include __DIR__ . '/footer.php';
216
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/settings.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  */
25 25
 $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_settings.tpl';
26 26
 
27
-include __DIR__ . '/header.php';
27
+include __DIR__.'/header.php';
28 28
 
29 29
 // Recovered value of argument op in the URL $
30 30
 $op = \Xmf\Request::getString('op', 'list');
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
46 46
         $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
47 47
         $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
48
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
48
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
49 49
         $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32);
50 50
         $settingsCount = $helper->getHandler('Settings')->getCountSettings();
51 51
         $settingsAll   = $helper->getHandler('Settings')->getAllSettings($start, $limit);
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
                 unset($setting);
58 58
             }
59 59
             if ($settingsCount > $limit) {
60
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
61
-                $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
60
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
61
+                $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit='.$limit);
62 62
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
63 63
             }
64 64
         } else {
@@ -187,4 +187,4 @@  discard block
 block discarded – undo
187 187
         }
188 188
         break;
189 189
 }
190
-include __DIR__ . '/footer.php';
190
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
  */
25 25
 $pathIcon32 = Xmf\Module\Admin::iconUrl('', 32);
26 26
 
27
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
27
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
28 28
 
29 29
 xoops_cp_footer();
Please login to merge, or discard this patch.
include/functions.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 //--></script>
55 55
 <!-- End Form Validation JavaScript //-->',
56 56
     ];
57
-    $paypalform   = [
57
+    $paypalform = [
58 58
         0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
59 59
         1 => '<input name="cmd" value="_s-xclick" type="hidden">',
60 60
         2 => '<input name="hosted_button_id" value="%s" type="hidden">',
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
             case 2:
68 68
                 $donationform[$key] = sprintf(
69 69
                     $donationform[$key],
70
-                    $GLOBALS['xoopsConfig']['sitename'] . ' - ' . ('' != $GLOBALS['xoopsUser']->getVar('name') ? $GLOBALS['xoopsUser']->getVar('name') . ' [' . $GLOBALS['xoopsUser']->getVar('uname') . ']' : $GLOBALS['xoopsUser']->getVar('uname')),
70
+                    $GLOBALS['xoopsConfig']['sitename'].' - '.('' != $GLOBALS['xoopsUser']->getVar('name') ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')),
71 71
                     $GLOBALS['xoopsUser']->getVar('email'),
72 72
                     XOOPS_LICENSE_KEY,
73 73
                     mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')),
74
-                    mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')) . ' ' . $GLOBALS['xoopsModule']->getVar('name')
74
+                    mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name')
75 75
                 );
76 76
                 break;
77 77
         }
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
     $donationform = [
34 34
         0   => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">',
35 35
         1   => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'
36
-               . _AM_TDMCREATE_ABOUT_MAKE_DONATION
37
-               . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
38
-               . _AM_TDMCREATE_DONATION_AMOUNT
39
-               . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
40
-               . _SUBMIT
41
-               . '" title="'
42
-               . _SUBMIT
43
-               . '" type="submit"></td></tr></tbody></table>',
36
+                . _AM_TDMCREATE_ABOUT_MAKE_DONATION
37
+                . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
38
+                . _AM_TDMCREATE_DONATION_AMOUNT
39
+                . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
40
+                . _SUBMIT
41
+                . '" title="'
42
+                . _SUBMIT
43
+                . '" type="submit"></td></tr></tbody></table>',
44 44
         2   => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="EUR" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"></form>',
45 45
         'D' => '',
46 46
         3   => '',
Please login to merge, or discard this patch.
include/update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 {
58 58
     global $xoopsDB;
59 59
     $result = $xoopsDB->query(
60
-        'SELECT t1.tpl_id FROM ' . $xoopsDB->prefix('tplfile') . ' t1, ' . $xoopsDB->prefix('tplfile') . ' t2 WHERE t1.tpl_refid = t2.tpl_refid AND t1.tpl_module = t2.tpl_module AND t1.tpl_tplset=t2.tpl_tplset AND t1.tpl_file = t2.tpl_file AND t1.tpl_type = t2.tpl_type AND t1.tpl_id > t2.tpl_id'
60
+        'SELECT t1.tpl_id FROM '.$xoopsDB->prefix('tplfile').' t1, '.$xoopsDB->prefix('tplfile').' t2 WHERE t1.tpl_refid = t2.tpl_refid AND t1.tpl_module = t2.tpl_module AND t1.tpl_tplset=t2.tpl_tplset AND t1.tpl_file = t2.tpl_file AND t1.tpl_type = t2.tpl_type AND t1.tpl_id > t2.tpl_id'
61 61
     );
62 62
     $tplids = [];
63 63
     while (list($tplid) = $xoopsDB->fetchRow($result)) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     if (count($tplids) > 0) {
67 67
         $tplfileHandler  = xoops_getHandler('tplfile');
68 68
         $duplicate_files = $tplfileHandler->getObjects(
69
-            new \Criteria('tpl_id', '(' . implode(',', $tplids) . ')', 'IN')
69
+            new \Criteria('tpl_id', '('.implode(',', $tplids).')', 'IN')
70 70
         );
71 71
 
72 72
         if (count($duplicate_files) > 0) {
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
             }
76 76
         }
77 77
     }
78
-    $sql = 'SHOW INDEX FROM ' . $xoopsDB->prefix('tplfile') . " WHERE KEY_NAME = 'tpl_refid_module_set_file_type'";
78
+    $sql = 'SHOW INDEX FROM '.$xoopsDB->prefix('tplfile')." WHERE KEY_NAME = 'tpl_refid_module_set_file_type'";
79 79
     if (!$result = $xoopsDB->queryF($sql)) {
80
-        xoops_error($this->db->error() . '<br />' . $sql);
80
+        xoops_error($this->db->error().'<br />'.$sql);
81 81
 
82 82
         return false;
83 83
     }
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
 
93 93
         return true;
94 94
     }
95
-    $sql = 'ALTER TABLE ' . $xoopsDB->prefix('tplfile') . ' ADD UNIQUE tpl_refid_module_set_file_type ( tpl_refid, tpl_module, tpl_tplset, tpl_file, tpl_type )';
95
+    $sql = 'ALTER TABLE '.$xoopsDB->prefix('tplfile').' ADD UNIQUE tpl_refid_module_set_file_type ( tpl_refid, tpl_module, tpl_tplset, tpl_file, tpl_type )';
96 96
     if (!$result = $xoopsDB->queryF($sql)) {
97
-        xoops_error($xoopsDB->error() . '<br />' . $sql);
97
+        xoops_error($xoopsDB->error().'<br />'.$sql);
98 98
         $module->setErrors(
99 99
             "'tpl_refid_module_set_file_type' unique index is not added to 'tplfile' table. Warning: do not use XOOPS until you add this unique index."
100 100
         );
Please login to merge, or discard this patch.
config/icons.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@
 block discarded – undo
6 6
     $moduleDirName = basename(dirname(__DIR__));
7 7
 
8 8
     return (object)[
9
-        'name'  => mb_strtoupper($moduleDirName) . ' IconConfigurator',
9
+        'name'  => mb_strtoupper($moduleDirName).' IconConfigurator',
10 10
         'icons' => [
11
-            'edit'    => "<img src='" . $pathIcon16 . "/edit.png'  alt=" . _EDIT . "' align='middle'>",
12
-            'delete'  => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>",
13
-            'clone'   => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>",
14
-            'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>",
15
-            'print'   => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>",
16
-            'pdf'     => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>",
17
-            'add'     => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>",
18
-            '0'       => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>",
19
-            '1'       => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>",
11
+            'edit'    => "<img src='".$pathIcon16."/edit.png'  alt="._EDIT."' align='middle'>",
12
+            'delete'  => "<img src='".$pathIcon16."/delete.png' alt='"._DELETE."' align='middle'>",
13
+            'clone'   => "<img src='".$pathIcon16."/editcopy.png' alt='"._CLONE."' align='middle'>",
14
+            'preview' => "<img src='".$pathIcon16."/view.png' alt='"._PREVIEW."' align='middle'>",
15
+            'print'   => "<img src='".$pathIcon16."/printer.png' alt='"._CLONE."' align='middle'>",
16
+            'pdf'     => "<img src='".$pathIcon16."/pdf.png' alt='"._CLONE."' align='middle'>",
17
+            'add'     => "<img src='".$pathIcon16."/add.png' alt='"._ADD."' align='middle'>",
18
+            '0'       => "<img src='".$pathIcon16."/0.png' alt='".0."' align='middle'>",
19
+            '1'       => "<img src='".$pathIcon16."/1.png' alt='".1."' align='middle'>",
20 20
         ],
21 21
     ];
22 22
 }
Please login to merge, or discard this patch.