Passed
Pull Request — master (#8)
by Michael
17:34 queued 13:57
created
index.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 /** @var Helper $helper */
12 12
 
13 13
 $GLOBALS['xoopsOption']['template_main'] = 'myiframe.tpl';
14
-require __DIR__ . '/header.php';
15
-require_once XOOPS_ROOT_PATH . '/header.php';
14
+require __DIR__.'/header.php';
15
+require_once XOOPS_ROOT_PATH.'/header.php';
16 16
 
17 17
 $tblalign = [];
18 18
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 if (isset($_GET)) {
21 21
     foreach ($_GET as $k => $v) {
22 22
         if ('IFRAMEID' !== \mb_strtoupper(trim($k))) {
23
-            $suplparam .= $k . '=' . $v . '&';
23
+            $suplparam .= $k.'='.$v.'&';
24 24
         }
25 25
     }
26 26
 }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 $iframeHandler = $helper->getHandler('MyiframeBase');
34 34
 
35 35
 if (Request::hasVar('iframeid', 'GET')) {
36
-    $tblalign     = [
36
+    $tblalign = [
37 37
         'top',
38 38
         'middle',
39 39
         'bottom',
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         'no',
46 46
         'auto',
47 47
     ];
48
-    $frameid      = Request::getInt('iframeid', 0, 'GET');
48
+    $frameid = Request::getInt('iframeid', 0, 'GET');
49 49
 
50 50
     $frame = $iframeHandler->get($frameid);
51 51
 
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
         $xoopsTpl->assign('longdesc', $frame->getVar('frame_description'));
56 56
         $xoopsTpl->assign('width', $frame->getVar('frame_width'));
57 57
         $xoopsTpl->assign('height', $frame->getVar('frame_height'));
58
-        $xoopsTpl->assign('align', $tblalign[(string)($frame->getVar('frame_align') - 1)]);
58
+        $xoopsTpl->assign('align', $tblalign[(string) ($frame->getVar('frame_align')-1)]);
59 59
         $xoopsTpl->assign('frameborder', $frame->getVar('frame_frameborder'));
60 60
         $xoopsTpl->assign('marginwidth', $frame->getVar('frame_marginwidth'));
61 61
         $xoopsTpl->assign('marginheight', $frame->getVar('frame_marginheight'));
62
-        $xoopsTpl->assign('scrolling', $tblscrolling[(string)($frame->getVar('frame_scrolling') - 1)]);
62
+        $xoopsTpl->assign('scrolling', $tblscrolling[(string) ($frame->getVar('frame_scrolling')-1)]);
63 63
         if ('' !== xoops_trim($suplparam)) {
64
-            $xoopsTpl->assign('url', $frame->getVar('frame_url') . '?' . $suplparam);
64
+            $xoopsTpl->assign('url', $frame->getVar('frame_url').'?'.$suplparam);
65 65
         } else {
66 66
             $xoopsTpl->assign('url', $frame->getVar('frame_url'));
67 67
         }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 } else {
75 75
     if (myiframe_getmoduleoption('showlist')) {
76
-        $baseurl = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/index.php';
76
+        $baseurl = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/index.php';
77 77
         $frarray = [];
78 78
         $critere = new \Criteria('1', '1', '=');
79 79
         $critere->setSort('frame_description');
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 if ('' === xoops_trim($frame->getVar('frame_description'))) {
85 85
                     $liendesc = $frame->getVar('frame_url');
86 86
                 } else {
87
-                    $liendesc = "<a href='" . $baseurl . '?iframeid=' . $frame->getVar('frame_frameid') . "'>" . $frame->getVar('frame_description') . '</a>';
87
+                    $liendesc = "<a href='".$baseurl.'?iframeid='.$frame->getVar('frame_frameid')."'>".$frame->getVar('frame_description').'</a>';
88 88
                 }
89 89
                 $iframe['list'] = $liendesc;
90 90
                 $xoopsTpl->append('iframes', $iframe);
@@ -95,4 +95,4 @@  discard block
 block discarded – undo
95 95
         $xoopsTpl->assign('frame_error', _MYIFRAME_FRAME_ERROR);
96 96
     }
97 97
 }
98
-require_once XOOPS_ROOT_PATH . '/footer.php';
98
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
blocks/myiframe_iframe.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 };
15 15
 /** @var Helper $helper */
16 16
 
17
-require_once XOOPS_ROOT_PATH . '/modules/myiframe/include/functions.php';
17
+require_once XOOPS_ROOT_PATH.'/modules/myiframe/include/functions.php';
18 18
 
19 19
 /**
20 20
  * @param $options
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         'left',
36 36
         'rigth',
37 37
     ];
38
-    $tblscrolling  = [
38
+    $tblscrolling = [
39 39
         'yes',
40 40
         'no',
41 41
         'auto',
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
         $block['longdesc']     = $frame->getVar('frame_description');
48 48
         $block['width']        = $frame->getVar('frame_width');
49 49
         $block['height']       = $frame->getVar('frame_height');
50
-        $block['align']        = $tblalign[$frame->getVar('frame_align') - 1];
50
+        $block['align']        = $tblalign[$frame->getVar('frame_align')-1];
51 51
         $block['frameborder']  = $frame->getVar('frame_frameborder');
52 52
         $block['marginwidth']  = $frame->getVar('frame_marginwidth');
53 53
         $block['marginheight'] = $frame->getVar('frame_marginheight');
54
-        $block['scrolling']    = $tblscrolling[$frame->getVar('frame_scrolling') - 1];
54
+        $block['scrolling']    = $tblscrolling[$frame->getVar('frame_scrolling')-1];
55 55
         $block['url']          = $frame->getVar('frame_url');
56 56
     }
57 57
 
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
     $critere->setSort('frame_description');
77 77
     $frarray = $iframeHandler->getObjects($critere);
78 78
 
79
-    $form = '' . _MB_MYIFRAME_IFRAME . "&nbsp;<select name='options[0]'>";
79
+    $form = ''._MB_MYIFRAME_IFRAME."&nbsp;<select name='options[0]'>";
80 80
     /** @var Myiframe $oneframe */
81 81
     foreach ($frarray as $oneframe) {
82
-        $form .= "<option value='" . $oneframe->getVar('frame_frameid') . "'";
82
+        $form .= "<option value='".$oneframe->getVar('frame_frameid')."'";
83 83
         if ($options[0] == $oneframe->getVar('frame_frameid')) {
84 84
             $form .= " selected='selected'";
85 85
         }
86
-        $form .= '>' . $oneframe->getVar('frame_description') . '</option>';
86
+        $form .= '>'.$oneframe->getVar('frame_description').'</option>';
87 87
     }
88 88
     $form .= "</select>\n";
89 89
 
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  */
9 9
 defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined.');
10 10
 
11
-require_once __DIR__ . '/preloads/autoloader.php';
11
+require_once __DIR__.'/preloads/autoloader.php';
12 12
 
13 13
 $moduleDirName      = \basename(__DIR__);
14 14
 $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
@@ -72,15 +72,15 @@  discard block
 block discarded – undo
72 72
 
73 73
 if (is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $modversion['dirname'] && $xoopsModule->getVar('isactive')) {
74 74
     $i = 0;
75
-    require_once XOOPS_ROOT_PATH . '/modules/myiframe/include/functions.php';
75
+    require_once XOOPS_ROOT_PATH.'/modules/myiframe/include/functions.php';
76 76
     $myts = \MyTextSanitizer::getInstance();
77 77
     if (myiframe_getmoduleoption('showinmenu')) {
78
-        $sql    = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('myiframe') . ' ORDER BY frame_description';
78
+        $sql    = 'SELECT * FROM '.$GLOBALS['xoopsDB']->prefix('myiframe').' ORDER BY frame_description';
79 79
         $result = $GLOBALS['xoopsDB']->query($sql);
80 80
         while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result))) {
81 81
             if ('' !== xoops_trim($myrow['frame_description'])) {
82 82
                 $modversion['sub'][$i]['name'] = htmlspecialchars($myrow['frame_description'], ENT_QUOTES | ENT_HTML5);
83
-                $modversion['sub'][$i]['url']  = 'index.php?iframeid=' . (int)$myrow['frame_frameid'];
83
+                $modversion['sub'][$i]['url']  = 'index.php?iframeid='.(int) $myrow['frame_frameid'];
84 84
                 $i++;
85 85
             }
86 86
         }
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
 // Make Sample button visible?
108 108
 $modversion['config'][] = [
109 109
     'name'        => 'displaySampleButton',
110
-    'title'       => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON',
111
-    'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC',
110
+    'title'       => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON',
111
+    'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC',
112 112
     'formtype'    => 'yesno',
113 113
     'valuetype'   => 'int',
114 114
     'default'     => 1,
Please login to merge, or discard this patch.
testdata/index.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
 /** @var Utility $utility */
30 30
 /** @var Configurator $configurator */
31 31
 
32
-require_once dirname(__DIR__, 3) . '/include/cp_header.php';
33
-require \dirname(__DIR__) . '/preloads/autoloader.php';
32
+require_once dirname(__DIR__, 3).'/include/cp_header.php';
33
+require \dirname(__DIR__).'/preloads/autoloader.php';
34 34
 
35 35
 $op = Request::getCmd('op', '');
36 36
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             loadSampleData();
51 51
         } else {
52 52
             xoops_cp_header();
53
-            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', \sprintf(\constant('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_CONFIRM')), \constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true);
53
+            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', \sprintf(\constant('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_CONFIRM')), \constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'), true);
54 54
             xoops_cp_footer();
55 55
         }
56 56
         break;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             clearSampleData();
66 66
         } else {
67 67
             xoops_cp_header();
68
-            xoops_confirm(['ok' => 1, 'op' => 'clear'], 'index.php', sprintf(constant('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA')), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true);
68
+            xoops_confirm(['ok' => 1, 'op' => 'clear'], 'index.php', sprintf(constant('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA')), constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'), true);
69 69
             xoops_cp_footer();
70 70
         }
71 71
         break;
@@ -88,20 +88,20 @@  discard block
 block discarded – undo
88 88
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
89 89
 
90 90
     $language = 'english/';
91
-    if (\is_dir(__DIR__ . '/' . $xoopsConfig['language'])) {
92
-        $language = $xoopsConfig['language'] . '/';
91
+    if (\is_dir(__DIR__.'/'.$xoopsConfig['language'])) {
92
+        $language = $xoopsConfig['language'].'/';
93 93
     }
94 94
 
95 95
     // load module tables
96 96
     foreach ($tables as $table) {
97
-        $tabledata = Yaml::readWrapped($language . $table . '.yml');
97
+        $tabledata = Yaml::readWrapped($language.$table.'.yml');
98 98
         TableLoad::truncateTable($table);
99 99
         TableLoad::loadTableFromArray($table, $tabledata);
100 100
     }
101 101
 
102 102
     // load permissions
103 103
     $table     = 'group_permission';
104
-    $tabledata = Yaml::readWrapped($language . $table . '.yml');
104
+    $tabledata = Yaml::readWrapped($language.$table.'.yml');
105 105
     $mid       = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getVar('mid');
106 106
     loadTableFromArrayWithReplace($table, $tabledata, 'gperm_modid', $mid);
107 107
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             $utility::rcopy($src, $dest);
115 115
         }
116 116
     }
117
-    \redirect_header('../admin/index.php', 1, \constant('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_SUCCESS'));
117
+    \redirect_header('../admin/index.php', 1, \constant('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_SUCCESS'));
118 118
 }
119 119
 
120 120
 /**
@@ -128,26 +128,26 @@  discard block
 block discarded – undo
128 128
     $helper             = Helper::getInstance();
129 129
     $tables             = $helper->getModule()->getInfo('tables');
130 130
 
131
-    $languageFolder = __DIR__ . '/' . $xoopsConfig['language'];
132
-    if (!\file_exists($languageFolder . '/')) {
133
-        Utility::createFolder($languageFolder . '/');
131
+    $languageFolder = __DIR__.'/'.$xoopsConfig['language'];
132
+    if (!\file_exists($languageFolder.'/')) {
133
+        Utility::createFolder($languageFolder.'/');
134 134
     }
135
-    $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/';
135
+    $exportFolder = $languageFolder.'/Exports-'.date('Y-m-d-H-i-s').'/';
136 136
     Utility::createFolder($exportFolder);
137 137
 
138 138
     // save module tables
139 139
     foreach ($tables as $table) {
140
-        TableLoad::saveTableToYamlFile($table, $exportFolder . $table . '.yml');
140
+        TableLoad::saveTableToYamlFile($table, $exportFolder.$table.'.yml');
141 141
     }
142 142
 
143 143
     // save permissions
144 144
     $criteria = new \CriteriaCompo();
145 145
     $criteria->add(new \Criteria('gperm_modid', $helper->getModule()->getVar('mid')));
146 146
     $skipColumns[] = 'gperm_id';
147
-    TableLoad::saveTableToYamlFile('group_permission', $exportFolder . 'group_permission.yml', $criteria, $skipColumns);
147
+    TableLoad::saveTableToYamlFile('group_permission', $exportFolder.'group_permission.yml', $criteria, $skipColumns);
148 148
     unset($criteria);
149 149
 
150
-    \redirect_header('../admin/index.php', 1, \constant('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA_SUCCESS'));
150
+    \redirect_header('../admin/index.php', 1, \constant('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA_SUCCESS'));
151 151
 }
152 152
 
153 153
 /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         //
166 166
         //        redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS'));
167 167
     } catch (\Throwable $e) {
168
-        exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR'));
168
+        exit(constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR'));
169 169
     }
170 170
 }
171 171
 
@@ -189,13 +189,13 @@  discard block
 block discarded – undo
189 189
     $prefixedTable = $db->prefix($table);
190 190
     $count         = 0;
191 191
 
192
-    $sql = 'DELETE FROM ' . $prefixedTable . ' WHERE `' . $search . '`=' . $db->quote($replace);
192
+    $sql = 'DELETE FROM '.$prefixedTable.' WHERE `'.$search.'`='.$db->quote($replace);
193 193
 
194 194
     $result = $db->queryF($sql);
195 195
 
196 196
     if ($result) {
197 197
         foreach ($data as $row) {
198
-            $insertInto  = 'INSERT INTO ' . $prefixedTable . ' (';
198
+            $insertInto  = 'INSERT INTO '.$prefixedTable.' (';
199 199
             $valueClause = ' VALUES (';
200 200
             $first       = true;
201 201
             foreach ($row as $column => $value) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
                 }
215 215
             }
216 216
 
217
-            $sql = $insertInto . ') ' . $valueClause . ')';
217
+            $sql = $insertInto.') '.$valueClause.')';
218 218
 
219 219
             $result = $db->queryF($sql);
220 220
             if (false !== $result) {
@@ -240,5 +240,5 @@  discard block
 block discarded – undo
240 240
     foreach ($tables as $table) {
241 241
         \Xmf\Database\TableLoad::truncateTable($table);
242 242
     }
243
-    redirect_header($helper->url('admin/index.php'), 1, constant('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA_OK'));
243
+    redirect_header($helper->url('admin/index.php'), 1, constant('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA_OK'));
244 244
 }
Please login to merge, or discard this patch.
class/Common/Blocksadmin.php 1 patch
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function listBlocks(): void
69 69
     {
70 70
         global $xoopsModule, $pathIcon16;
71
-        require_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
71
+        require_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
72 72
         //        xoops_loadLanguage('admin', 'system');
73 73
         //        xoops_loadLanguage('admin/blocksadmin', 'system');
74 74
         //        xoops_loadLanguage('admin/groups', 'system');
@@ -88,16 +88,16 @@  discard block
 block discarded – undo
88 88
         $moduleList[-1] = \_AM_SYSTEM_BLOCKS_TOPPAGE;
89 89
         $moduleList[0]  = \_AM_SYSTEM_BLOCKS_ALLPAGES;
90 90
         \ksort($moduleList);
91
-        echo "<h4 style='text-align:left;'>" . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'BADMIN') . '</h4>';
92
-        echo "<form action='" . $_SERVER['SCRIPT_NAME'] . "' name='blockadmin' method='post'>";
91
+        echo "<h4 style='text-align:left;'>".\constant('CO_'.$this->moduleDirNameUpper.'_'.'BADMIN').'</h4>';
92
+        echo "<form action='".$_SERVER['SCRIPT_NAME']."' name='blockadmin' method='post'>";
93 93
         echo $GLOBALS['xoopsSecurity']->getTokenHTML();
94 94
         echo "<table width='100%' class='outer' cellpadding='4' cellspacing='1'>
95
-        <tr valign='middle'><th align='center'>" . \_AM_SYSTEM_BLOCKS_TITLE . "</th><th align='center' nowrap='nowrap'>" . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'SIDE') . '<br>' . _LEFT . '-' . _CENTER . '-' . _RIGHT . "</th>
96
-        <th align='center'>" . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'WEIGHT') . "</th>
97
-        <th align='center'>" . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'VISIBLE') . "</th><th align='center'>" . \_AM_SYSTEM_BLOCKS_VISIBLEIN . "</th>
98
-        <th align='center'>" . \_AM_SYSTEM_ADGS . "</th>
99
-        <th align='center'>" . \_AM_SYSTEM_BLOCKS_BCACHETIME . "</th>
100
-        <th align='center'>" . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'ACTION') . '</th>
95
+        <tr valign='middle'><th align='center'>" . \_AM_SYSTEM_BLOCKS_TITLE."</th><th align='center' nowrap='nowrap'>".\constant('CO_'.$this->moduleDirNameUpper.'_'.'SIDE').'<br>'._LEFT.'-'._CENTER.'-'._RIGHT."</th>
96
+        <th align='center'>" . \constant('CO_'.$this->moduleDirNameUpper.'_'.'WEIGHT')."</th>
97
+        <th align='center'>" . \constant('CO_'.$this->moduleDirNameUpper.'_'.'VISIBLE')."</th><th align='center'>".\_AM_SYSTEM_BLOCKS_VISIBLEIN."</th>
98
+        <th align='center'>" . \_AM_SYSTEM_ADGS."</th>
99
+        <th align='center'>" . \_AM_SYSTEM_BLOCKS_BCACHETIME."</th>
100
+        <th align='center'>" . \constant('CO_'.$this->moduleDirNameUpper.'_'.'ACTION').'</th>
101 101
         </tr>';
102 102
         $blockArray = \XoopsBlock::getByModule($xoopsModule->mid());
103 103
         $blockCount = \count($blockArray);
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
         ];
118 118
         foreach ($blockArray as $i) {
119 119
             $groupsPermissions = $grouppermHandler->getGroupIds('block_read', $i->getVar('bid'));
120
-            $sql               = 'SELECT module_id FROM ' . $this->db->prefix('block_module_link') . ' WHERE block_id=' . $i->getVar('bid');
120
+            $sql               = 'SELECT module_id FROM '.$this->db->prefix('block_module_link').' WHERE block_id='.$i->getVar('bid');
121 121
             $result            = $this->db->query($sql);
122 122
             $modules           = [];
123 123
             if (!$result instanceof \mysqli_result) {
124
-                \trigger_error("Query Failed! SQL: $sql Error: " . $this->db->error(), \E_USER_ERROR);
124
+                \trigger_error("Query Failed! SQL: $sql Error: ".$this->db->error(), \E_USER_ERROR);
125 125
             }
126 126
             while (false !== ($row = $this->db->fetchArray($result))) {
127
-                $modules[] = (int)$row['module_id'];
127
+                $modules[] = (int) $row['module_id'];
128 128
             }
129 129
 
130 130
             $cachetimeOptions = '';
@@ -174,46 +174,46 @@  discard block
 block discarded – undo
174 174
                 $title = $i->getVar('title');
175 175
             }
176 176
             $name = $i->getVar('name');
177
-            echo "<tr valign='top'><td class='$class' align='center'><input type='text' name='title[" . $i->getVar('bid') . "]' value='" . $title . "'></td>
177
+            echo "<tr valign='top'><td class='$class' align='center'><input type='text' name='title[".$i->getVar('bid')."]' value='".$title."'></td>
178 178
             <td class='$class' align='center' nowrap='nowrap'><div align='center' >
179
-                    <input type='radio' name='side[" . $i->getVar('bid') . "]' value='" . \XOOPS_CENTERBLOCK_LEFT . "'$ssel2>
180
-                    <input type='radio' name='side[" . $i->getVar('bid') . "]' value='" . \XOOPS_CENTERBLOCK_CENTER . "'$ssel3>
181
-                    <input type='radio' name='side[" . $i->getVar('bid') . "]' value='" . \XOOPS_CENTERBLOCK_RIGHT . "'$ssel4>
179
+                    <input type='radio' name='side[".$i->getVar('bid')."]' value='".\XOOPS_CENTERBLOCK_LEFT."'$ssel2>
180
+                    <input type='radio' name='side[".$i->getVar('bid')."]' value='".\XOOPS_CENTERBLOCK_CENTER."'$ssel3>
181
+                    <input type='radio' name='side[".$i->getVar('bid')."]' value='".\XOOPS_CENTERBLOCK_RIGHT."'$ssel4>
182 182
                     </div>
183 183
                     <div>
184
-                        <span style='float:right;'><input type='radio' name='side[" . $i->getVar('bid') . "]' value='" . \XOOPS_SIDEBLOCK_RIGHT . "'$ssel1></span>
185
-                    <div align='left'><input type='radio' name='side[" . $i->getVar('bid') . "]' value='" . \XOOPS_SIDEBLOCK_LEFT . "'$ssel0></div>
184
+                        <span style='float:right;'><input type='radio' name='side[".$i->getVar('bid')."]' value='".\XOOPS_SIDEBLOCK_RIGHT."'$ssel1></span>
185
+                    <div align='left'><input type='radio' name='side[".$i->getVar('bid')."]' value='".\XOOPS_SIDEBLOCK_LEFT."'$ssel0></div>
186 186
                     </div>
187 187
                     <div align='center'>
188
-                    <input type='radio' name='side[" . $i->getVar('bid') . "]' value='" . \XOOPS_CENTERBLOCK_BOTTOMLEFT . "'$ssel5>
189
-                        <input type='radio' name='side[" . $i->getVar('bid') . "]' value='" . \XOOPS_CENTERBLOCK_BOTTOM . "'$ssel7>
190
-                    <input type='radio' name='side[" . $i->getVar('bid') . "]' value='" . \XOOPS_CENTERBLOCK_BOTTOMRIGHT . "'$ssel6>
188
+                    <input type='radio' name='side[".$i->getVar('bid')."]' value='".\XOOPS_CENTERBLOCK_BOTTOMLEFT."'$ssel5>
189
+                        <input type='radio' name='side[".$i->getVar('bid')."]' value='".\XOOPS_CENTERBLOCK_BOTTOM."'$ssel7>
190
+                    <input type='radio' name='side[".$i->getVar('bid')."]' value='".\XOOPS_CENTERBLOCK_BOTTOMRIGHT."'$ssel6>
191 191
                     </div>
192 192
                 </td>
193
-                <td class='$class' align='center'><input type='text' name='weight[" . $i->getVar('bid') . "]' value='" . $i->getVar('weight') . "' size='5' maxlength='5'></td>
194
-                <td class='$class' align='center' nowrap><input type='radio' name='visible[" . $i->getVar('bid') . "]' value='1'$sel1>" . _YES . "&nbsp;<input type='radio' name='visible[" . $i->getVar('bid') . "]' value='0'$sel0>" . _NO . '</td>';
193
+                <td class='$class' align='center'><input type='text' name='weight[".$i->getVar('bid')."]' value='".$i->getVar('weight')."' size='5' maxlength='5'></td>
194
+                <td class='$class' align='center' nowrap><input type='radio' name='visible[".$i->getVar('bid')."]' value='1'$sel1>"._YES."&nbsp;<input type='radio' name='visible[".$i->getVar('bid')."]' value='0'$sel0>"._NO.'</td>';
195 195
 
196
-            echo "<td class='$class' align='center'><select size='5' name='bmodule[" . $i->getVar('bid') . "][]' id='bmodule[" . $i->getVar('bid') . "][]' multiple='multiple'>";
196
+            echo "<td class='$class' align='center'><select size='5' name='bmodule[".$i->getVar('bid')."][]' id='bmodule[".$i->getVar('bid')."][]' multiple='multiple'>";
197 197
             foreach ($moduleList as $k => $v) {
198
-                echo "<option value='$k'" . (\in_array($k, $modules) ? " selected='selected'" : '') . ">$v</option>";
198
+                echo "<option value='$k'".(\in_array($k, $modules) ? " selected='selected'" : '').">$v</option>";
199 199
             }
200 200
             echo '</select></td>';
201 201
 
202
-            echo "<td class='$class' align='center'><select size='5' name='groups[" . $i->getVar('bid') . "][]' id='groups[" . $i->getVar('bid') . "][]' multiple='multiple'>";
202
+            echo "<td class='$class' align='center'><select size='5' name='groups[".$i->getVar('bid')."][]' id='groups[".$i->getVar('bid')."][]' multiple='multiple'>";
203 203
             foreach ($groups as $grp) {
204
-                echo "<option value='" . $grp->getVar('groupid') . "' " . (\in_array($grp->getVar('groupid'), $groupsPermissions) ? " selected='selected'" : '') . '>' . $grp->getVar('name') . '</option>';
204
+                echo "<option value='".$grp->getVar('groupid')."' ".(\in_array($grp->getVar('groupid'), $groupsPermissions) ? " selected='selected'" : '').'>'.$grp->getVar('name').'</option>';
205 205
             }
206 206
             echo '</select></td>';
207 207
 
208 208
             // Cache lifetime
209
-            echo '<td class="' . $class . '" align="center"> <select name="bcachetime[' . $i->getVar('bid') . ']" size="1">' . $cachetimeOptions . '</select>
209
+            echo '<td class="'.$class.'" align="center"> <select name="bcachetime['.$i->getVar('bid').']" size="1">'.$cachetimeOptions.'</select>
210 210
                                     </td>';
211 211
 
212 212
             // Actions
213 213
 
214 214
             echo "<td class='$class' align='center'>
215
-                <a href='blocksadmin.php?op=edit&amp;bid=" . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/edit.png' . " alt='" . _EDIT . "' title='" . _EDIT . "'></a> 
216
-                <a href='blocksadmin.php?op=clone&amp;bid=" . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/editcopy.png' . " alt='" . _CLONE . "' title='" . _CLONE . "'></a>";
215
+                <a href='blocksadmin.php?op=edit&amp;bid=".$i->getVar('bid')."'><img src=".$pathIcon16.'/edit.png'." alt='"._EDIT."' title='"._EDIT."'></a> 
216
+                <a href='blocksadmin.php?op=clone&amp;bid=" . $i->getVar('bid')."'><img src=".$pathIcon16.'/editcopy.png'." alt='"._CLONE."' title='"._CLONE."'></a>";
217 217
             //            if ('S' !== $i->getVar('block_type') && 'M' !== $i->getVar('block_type')) {
218 218
             //                echo "&nbsp;<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=blocksadmin&amp;op=delete&amp;bid=' . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/delete.png' . " alt='" . _DELETE . "' title='" . _DELETE . "'>
219 219
             //                     </a>";
@@ -222,22 +222,22 @@  discard block
 block discarded – undo
222 222
             //            if ('S' !== $i->getVar('block_type') && 'M' !== $i->getVar('block_type')) {
223 223
             if (!\in_array($i->getVar('block_type'), ['M', 'S'])) {
224 224
                 echo "&nbsp;
225
-                <a href='blocksadmin.php?op=delete&amp;bid=" . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/delete.png' . " alt='" . _DELETE . "' title='" . _DELETE . "'>
225
+                <a href='blocksadmin.php?op=delete&amp;bid=" . $i->getVar('bid')."'><img src=".$pathIcon16.'/delete.png'." alt='"._DELETE."' title='"._DELETE."'>
226 226
                      </a>";
227 227
             }
228 228
             echo "
229
-            <input type='hidden' name='oldtitle[" . $i->getVar('bid') . "]' value='" . $i->getVar('title') . "'>
230
-            <input type='hidden' name='oldside[" . $i->getVar('bid') . "]' value='" . $i->getVar('side') . "'>
231
-            <input type='hidden' name='oldweight[" . $i->getVar('bid') . "]' value='" . $i->getVar('weight') . "'>
232
-            <input type='hidden' name='oldvisible[" . $i->getVar('bid') . "]' value='" . $i->getVar('visible') . "'>
233
-            <input type='hidden' name='oldgroups[" . $i->getVar('groups') . "]' value='" . $i->getVar('groups') . "'>
234
-            <input type='hidden' name='oldbcachetime[" . $i->getVar('bid') . "]' value='" . $i->getVar('bcachetime') . "'>
235
-            <input type='hidden' name='bid[" . $i->getVar('bid') . "]' value='" . $i->getVar('bid') . "'>
229
+            <input type='hidden' name='oldtitle[" . $i->getVar('bid')."]' value='".$i->getVar('title')."'>
230
+            <input type='hidden' name='oldside[" . $i->getVar('bid')."]' value='".$i->getVar('side')."'>
231
+            <input type='hidden' name='oldweight[" . $i->getVar('bid')."]' value='".$i->getVar('weight')."'>
232
+            <input type='hidden' name='oldvisible[" . $i->getVar('bid')."]' value='".$i->getVar('visible')."'>
233
+            <input type='hidden' name='oldgroups[" . $i->getVar('groups')."]' value='".$i->getVar('groups')."'>
234
+            <input type='hidden' name='oldbcachetime[" . $i->getVar('bid')."]' value='".$i->getVar('bcachetime')."'>
235
+            <input type='hidden' name='bid[" . $i->getVar('bid')."]' value='".$i->getVar('bid')."'>
236 236
             </td></tr>
237 237
             ";
238 238
             $class = ('even' === $class) ? 'odd' : 'even';
239 239
         }
240
-        echo "<tr><td class='foot' align='center' colspan='8'> <input type='hidden' name='op' value='order'>" . $GLOBALS['xoopsSecurity']->getTokenHTML() . "<input type='submit' name='submit' value='" . _SUBMIT . "'></td></tr></table></form><br><br>";
240
+        echo "<tr><td class='foot' align='center' colspan='8'> <input type='hidden' name='op' value='order'>".$GLOBALS['xoopsSecurity']->getTokenHTML()."<input type='submit' name='submit' value='"._SUBMIT."'></td></tr></table></form><br><br>";
241 241
     }
242 242
 
243 243
     /**
@@ -276,18 +276,18 @@  discard block
 block discarded – undo
276 276
         \xoops_loadLanguage('admin/groups', 'system');
277 277
 
278 278
         $myblock = new \XoopsBlock($bid);
279
-        $sql     = 'SELECT module_id FROM ' . $this->db->prefix('block_module_link') . ' WHERE block_id=' . $bid;
279
+        $sql     = 'SELECT module_id FROM '.$this->db->prefix('block_module_link').' WHERE block_id='.$bid;
280 280
         $result  = $this->db->query($sql);
281 281
         $modules = [];
282 282
         if ($result instanceof \mysqli_result) {
283 283
             while (false !== ($row = $this->db->fetchArray($result))) {
284
-                $modules[] = (int)$row['module_id'];
284
+                $modules[] = (int) $row['module_id'];
285 285
             }
286 286
         }
287 287
         $isCustom = \in_array($myblock->getVar('block_type'), ['C', 'E']);
288 288
         $block    = [
289
-            'title'      => $myblock->getVar('title') . ' Clone',
290
-            'form_title' => \constant('CO_' . $this->moduleDirNameUpper . '_' . 'BLOCKS_CLONEBLOCK'),
289
+            'title'      => $myblock->getVar('title').' Clone',
290
+            'form_title' => \constant('CO_'.$this->moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK'),
291 291
             'name'       => $myblock->getVar('name'),
292 292
             'side'       => $myblock->getVar('side'),
293 293
             'weight'     => $myblock->getVar('weight'),
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
             'template'   => $myblock->getVar('template'),
304 304
             'options'    => $myblock->getVar('options'),
305 305
         ];
306
-        echo '<a href="blocksadmin.php">' . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'BADMIN') . '</a>&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;' . \_AM_SYSTEM_BLOCKS_CLONEBLOCK . '<br><br>';
306
+        echo '<a href="blocksadmin.php">'.\constant('CO_'.$this->moduleDirNameUpper.'_'.'BADMIN').'</a>&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;'.\_AM_SYSTEM_BLOCKS_CLONEBLOCK.'<br><br>';
307 307
         //        $form = new Blockform();
308 308
         //        $form->render();
309 309
 
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
         }
357 357
         //        $newid = $clone->store(); //see https://github.com/XOOPS/XoopsCore25/issues/1105
358 358
         if ($clone->store()) {
359
-            $newid = $clone->id();  //get the id of the cloned block
359
+            $newid = $clone->id(); //get the id of the cloned block
360 360
         }
361 361
         if (!$newid) {
362 362
             //            \xoops_cp_header();
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
         if ('' !== $clone->getVar('template')) {
368 368
             /** @var \XoopsTplfileHandler $tplfileHandler */
369 369
             $tplfileHandler = \xoops_getHandler('tplfile');
370
-            $btemplate      = $tplfileHandler->find($GLOBALS['xoopsConfig']['template_set'], 'block', (string)$bid);
370
+            $btemplate      = $tplfileHandler->find($GLOBALS['xoopsConfig']['template_set'], 'block', (string) $bid);
371 371
             if (\count($btemplate) > 0) {
372 372
                 $tplclone = $btemplate[0]->xoopsClone();
373 373
                 $tplclone->setVar('tpl_id', 0);
@@ -377,12 +377,12 @@  discard block
 block discarded – undo
377 377
         }
378 378
 
379 379
         foreach ($bmodule as $bmid) {
380
-            $sql = 'INSERT INTO ' . $this->db->prefix('block_module_link') . ' (block_id, module_id) VALUES (' . $newid . ', ' . $bmid . ')';
380
+            $sql = 'INSERT INTO '.$this->db->prefix('block_module_link').' (block_id, module_id) VALUES ('.$newid.', '.$bmid.')';
381 381
             $this->db->query($sql);
382 382
         }
383 383
         //$groups = &$GLOBALS['xoopsUser']->getGroups();
384 384
         foreach ($groups as $iValue) {
385
-            $sql = 'INSERT INTO ' . $this->db->prefix('group_permission') . ' (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (' . $iValue . ', ' . $newid . ", 1, 'block_read')";
385
+            $sql = 'INSERT INTO '.$this->db->prefix('group_permission').' (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES ('.$iValue.', '.$newid.", 1, 'block_read')";
386 386
             $this->db->query($sql);
387 387
         }
388 388
         $this->helper->redirect('admin/blocksadmin.php?op=list', 1, _AM_DBUPDATED);
@@ -425,12 +425,12 @@  discard block
 block discarded – undo
425 425
         \xoops_loadLanguage('admin/groups', 'system');
426 426
         //        mpu_adm_menu();
427 427
         $myblock = new \XoopsBlock($bid);
428
-        $sql     = 'SELECT module_id FROM ' . $this->db->prefix('block_module_link') . ' WHERE block_id=' . $bid;
428
+        $sql     = 'SELECT module_id FROM '.$this->db->prefix('block_module_link').' WHERE block_id='.$bid;
429 429
         $result  = $this->db->query($sql);
430 430
         $modules = [];
431 431
         if ($result instanceof \mysqli_result) {
432 432
             while (false !== ($row = $this->db->fetchArray($result))) {
433
-                $modules[] = (int)$row['module_id'];
433
+                $modules[] = (int) $row['module_id'];
434 434
             }
435 435
         }
436 436
         $isCustom = \in_array($myblock->getVar('block_type'), ['C', 'E']);
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
             'template'   => $myblock->getVar('template'),
453 453
             'options'    => $myblock->getVar('options'),
454 454
         ];
455
-        echo '<a href="blocksadmin.php">' . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'BADMIN') . '</a>&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;' . \_AM_SYSTEM_BLOCKS_EDITBLOCK . '<br><br>';
455
+        echo '<a href="blocksadmin.php">'.\constant('CO_'.$this->moduleDirNameUpper.'_'.'BADMIN').'</a>&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;'.\_AM_SYSTEM_BLOCKS_EDITBLOCK.'<br><br>';
456 456
 
457 457
         echo $this->render($block);
458 458
     }
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
                 $this->db->query($sql);
505 505
             } else {
506 506
                 foreach ($bmodule as $bmid) {
507
-                    $sql = \sprintf('INSERT INTO `%s` (block_id, module_id) VALUES (%u, %d)', $this->db->prefix('block_module_link'), $bid, (int)$bmid);
507
+                    $sql = \sprintf('INSERT INTO `%s` (block_id, module_id) VALUES (%u, %d)', $this->db->prefix('block_module_link'), $bid, (int) $bmid);
508 508
                     $this->db->query($sql);
509 509
                 }
510 510
             }
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
                 $this->db->query($sql);
518 518
             }
519 519
         }
520
-        $this->helper->redirect('admin/blocksadmin.php', 1, \constant('CO_' . $this->moduleDirNameUpper . '_' . 'UPDATE_SUCCESS'));
520
+        $this->helper->redirect('admin/blocksadmin.php', 1, \constant('CO_'.$this->moduleDirNameUpper.'_'.'UPDATE_SUCCESS'));
521 521
     }
522 522
 
523 523
     /**
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
                     $this->db->query($sql);
562 562
                 } else {
563 563
                     foreach ($bmodule[$i] as $bmid) {
564
-                        $sql = \sprintf('INSERT INTO `%s` (block_id, module_id) VALUES (%u, %d)', $this->db->prefix('block_module_link'), $bid[$i], (int)$bmid);
564
+                        $sql = \sprintf('INSERT INTO `%s` (block_id, module_id) VALUES (%u, %d)', $this->db->prefix('block_module_link'), $bid[$i], (int) $bmid);
565 565
                         $this->db->query($sql);
566 566
                     }
567 567
                 }
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
             }
577 577
         }
578 578
 
579
-        $this->helper->redirect('admin/blocksadmin.php', 1, \constant('CO_' . $this->moduleDirNameUpper . '_' . 'UPDATE_SUCCESS'));
579
+        $this->helper->redirect('admin/blocksadmin.php', 1, \constant('CO_'.$this->moduleDirNameUpper.'_'.'UPDATE_SUCCESS'));
580 580
     }
581 581
 
582 582
     /**
@@ -604,9 +604,9 @@  discard block
 block discarded – undo
604 604
                                         9 => \_AM_SYSTEM_BLOCKS_CBBOTTOM,
605 605
                                     ]);
606 606
         $form->addElement($sideSelect);
607
-        $form->addElement(new \XoopsFormText(\constant('CO_' . $this->moduleDirNameUpper . '_' . 'WEIGHT'), 'bweight', 2, 5, $block['weight']));
608
-        $form->addElement(new \XoopsFormRadioYN(\constant('CO_' . $this->moduleDirNameUpper . '_' . 'VISIBLE'), 'bvisible', $block['visible']));
609
-        $modSelect = new \XoopsFormSelect(\constant('CO_' . $this->moduleDirNameUpper . '_' . 'VISIBLEIN'), 'bmodule', $block['modules'], 5, true);
607
+        $form->addElement(new \XoopsFormText(\constant('CO_'.$this->moduleDirNameUpper.'_'.'WEIGHT'), 'bweight', 2, 5, $block['weight']));
608
+        $form->addElement(new \XoopsFormRadioYN(\constant('CO_'.$this->moduleDirNameUpper.'_'.'VISIBLE'), 'bvisible', $block['visible']));
609
+        $modSelect = new \XoopsFormSelect(\constant('CO_'.$this->moduleDirNameUpper.'_'.'VISIBLEIN'), 'bmodule', $block['modules'], 5, true);
610 610
         /** @var \XoopsModuleHandler $moduleHandler */
611 611
         $moduleHandler = \xoops_getHandler('module');
612 612
         $criteria      = new \CriteriaCompo(new \Criteria('hasmain', '1'));
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
         $form->addElement(new \XoopsFormText(\_AM_SYSTEM_BLOCKS_TITLE, 'btitle', 50, 255, $block['title']), false);
621 621
         if ($block['is_custom']) {
622 622
             $textarea = new \XoopsFormDhtmlTextArea(\_AM_SYSTEM_BLOCKS_CONTENT, 'bcontent', $block['content'], 15, 70);
623
-            $textarea->setDescription('<span style="font-size:x-small;font-weight:bold;">' . \_AM_SYSTEM_BLOCKS_USEFULTAGS . '</span><br><span style="font-size:x-small;font-weight:normal;">' . \sprintf(_AM_BLOCKTAG1, '{X_SITEURL}', XOOPS_URL . '/') . '</span>');
623
+            $textarea->setDescription('<span style="font-size:x-small;font-weight:bold;">'.\_AM_SYSTEM_BLOCKS_USEFULTAGS.'</span><br><span style="font-size:x-small;font-weight:normal;">'.\sprintf(_AM_BLOCKTAG1, '{X_SITEURL}', XOOPS_URL.'/').'</span>');
624 624
             $form->addElement($textarea, true);
625 625
             $ctypeSelect = new \XoopsFormSelect(\_AM_SYSTEM_BLOCKS_CTYPE, 'bctype', $block['ctype']);
626 626
             $ctypeSelect->addOptionArray([
@@ -636,11 +636,11 @@  discard block
 block discarded – undo
636 636
                 $tplfileHandler = \xoops_getHandler('tplfile');
637 637
                 $btemplate      = $tplfileHandler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $block['bid']);
638 638
                 if (\count($btemplate) > 0) {
639
-                    $form->addElement(new \XoopsFormLabel(\_AM_SYSTEM_BLOCKS_CONTENT, '<a href="' . XOOPS_URL . '/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id=' . $btemplate[0]->getVar('tpl_id') . '">' . \_AM_SYSTEM_BLOCKS_EDITTPL . '</a>'));
639
+                    $form->addElement(new \XoopsFormLabel(\_AM_SYSTEM_BLOCKS_CONTENT, '<a href="'.XOOPS_URL.'/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id='.$btemplate[0]->getVar('tpl_id').'">'.\_AM_SYSTEM_BLOCKS_EDITTPL.'</a>'));
640 640
                 } else {
641 641
                     $btemplate2 = $tplfileHandler->find('default', 'block', $block['bid']);
642 642
                     if (\count($btemplate2) > 0) {
643
-                        $form->addElement(new \XoopsFormLabel(\_AM_SYSTEM_BLOCKS_CONTENT, '<a href="' . XOOPS_URL . '/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id=' . $btemplate2[0]->getVar('tpl_id') . '" target="_blank">' . \_AM_SYSTEM_BLOCKS_EDITTPL . '</a>'));
643
+                        $form->addElement(new \XoopsFormLabel(\_AM_SYSTEM_BLOCKS_CONTENT, '<a href="'.XOOPS_URL.'/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id='.$btemplate2[0]->getVar('tpl_id').'" target="_blank">'.\_AM_SYSTEM_BLOCKS_EDITTPL.'</a>'));
644 644
                     }
645 645
                 }
646 646
             }
Please login to merge, or discard this patch.