Cancelled
Push — master ( dd6e46...186ca8 )
by Michael
72:53 queued 72:53
created
include/functions.user.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -184,18 +184,18 @@
 block discarded – undo
184 184
     $mid = $xoopsModule->getVar('mid');
185 185
 
186 186
     $sql = 'SELECT COUNT(l.groupid) AS count, l.uid FROM '
187
-           . $xoopsMembershipTable
188
-           . ' AS l'
189
-           . ' LEFT JOIN '
190
-           . $xoopsGroupPermTable
191
-           . ' AS p ON p.gperm_groupid=l.groupid'
192
-           . ' WHERE l.uid IN ('
193
-           . implode(', ', array_map('intval', $uid))
194
-           . ')'
195
-           . "    AND p.gperm_modid = '1' AND p.gperm_name = 'module_admin' AND p.gperm_itemid = '"
196
-           . (int)$mid
197
-           . "'"
198
-           . ' GROUP BY l.uid';
187
+            . $xoopsMembershipTable
188
+            . ' AS l'
189
+            . ' LEFT JOIN '
190
+            . $xoopsGroupPermTable
191
+            . ' AS p ON p.gperm_groupid=l.groupid'
192
+            . ' WHERE l.uid IN ('
193
+            . implode(', ', array_map('intval', $uid))
194
+            . ')'
195
+            . "    AND p.gperm_modid = '1' AND p.gperm_name = 'module_admin' AND p.gperm_itemid = '"
196
+            . (int)$mid
197
+            . "'"
198
+            . ' GROUP BY l.uid';
199 199
 
200 200
     if ($result = $GLOBALS['xoopsDB']->query($sql)) {
201 201
         while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result))) {
Please login to merge, or discard this patch.
topicmanager.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -148,23 +148,23 @@  discard block
 block discarded – undo
148 148
         $restoretopic_id = $topicObject->getVar('topic_id');
149 149
         // irmtfan / missing in URL
150 150
         echo $action[$mode]['msg']
151
-             . "<p><a href='"
152
-             . XOOPS_URL
153
-             . '/modules/'
154
-             . $xoopsModule->getVar('dirname')
155
-             . "/viewtopic.php?topic_id=$restoretopic_id'>"
156
-             . _MD_NEWBB_VIEWTHETOPIC
157
-             . '</a></p>'
158
-             . "<p><a href='"
159
-             . XOOPS_URL
160
-             . '/modules/'
161
-             . $xoopsModule->getVar('dirname')
162
-             . "/viewforum.php?forum=$forum'>"
163
-             . _MD_NEWBB_RETURNTOTHEFORUM
164
-             . '</a></p>'
165
-             . "<p><a href='index.php'>"
166
-             . _MD_NEWBB_RETURNFORUMINDEX
167
-             . '</a></p>';
151
+                . "<p><a href='"
152
+                . XOOPS_URL
153
+                . '/modules/'
154
+                . $xoopsModule->getVar('dirname')
155
+                . "/viewtopic.php?topic_id=$restoretopic_id'>"
156
+                . _MD_NEWBB_VIEWTHETOPIC
157
+                . '</a></p>'
158
+                . "<p><a href='"
159
+                . XOOPS_URL
160
+                . '/modules/'
161
+                . $xoopsModule->getVar('dirname')
162
+                . "/viewforum.php?forum=$forum'>"
163
+                . _MD_NEWBB_RETURNTOTHEFORUM
164
+                . '</a></p>'
165
+                . "<p><a href='index.php'>"
166
+                . _MD_NEWBB_RETURNFORUMINDEX
167
+                . '</a></p>';
168 168
     } elseif ('merge' === $mode) {
169 169
         //        /** @var PostHandler $postHandler */
170 170
         //        $postHandler = Newbb\Helper::getInstance()->getHandler('Post');
@@ -222,28 +222,28 @@  discard block
 block discarded – undo
222 222
             // END irmtfan poll_module and rewrite the method
223 223
         }
224 224
         echo $action[$mode]['msg']
225
-             . // irmtfan full URL
226
-             "<p><a href='"
227
-             . XOOPS_URL
228
-             . '/modules/'
229
-             . $xoopsModule->getVar('dirname')
230
-             . "/viewtopic.php?topic_id=$newtopic'>"
231
-             . _MD_NEWBB_VIEWTHETOPIC
232
-             . '</a></p>'
233
-             . "<p><a href='"
234
-             . XOOPS_URL
235
-             . '/modules/'
236
-             . $xoopsModule->getVar('dirname')
237
-             . "/viewforum.php?forum=$forum'>"
238
-             . _MD_NEWBB_RETURNTOTHEFORUM
239
-             . '</a></p>'
240
-             . "<p><a href='"
241
-             . XOOPS_URL
242
-             . '/modules/'
243
-             . $xoopsModule->getVar('dirname')
244
-             . "/index.php'>"
245
-             . _MD_NEWBB_RETURNFORUMINDEX
246
-             . '</a></p>';
225
+                . // irmtfan full URL
226
+                "<p><a href='"
227
+                . XOOPS_URL
228
+                . '/modules/'
229
+                . $xoopsModule->getVar('dirname')
230
+                . "/viewtopic.php?topic_id=$newtopic'>"
231
+                . _MD_NEWBB_VIEWTHETOPIC
232
+                . '</a></p>'
233
+                . "<p><a href='"
234
+                . XOOPS_URL
235
+                . '/modules/'
236
+                . $xoopsModule->getVar('dirname')
237
+                . "/viewforum.php?forum=$forum'>"
238
+                . _MD_NEWBB_RETURNTOTHEFORUM
239
+                . '</a></p>'
240
+                . "<p><a href='"
241
+                . XOOPS_URL
242
+                . '/modules/'
243
+                . $xoopsModule->getVar('dirname')
244
+                . "/index.php'>"
245
+                . _MD_NEWBB_RETURNFORUMINDEX
246
+                . '</a></p>';
247 247
     } elseif ('move' === $mode) {
248 248
         if ($newforum > 0) {
249 249
             $topic_id    = $topic_id[0];
@@ -261,17 +261,17 @@  discard block
 block discarded – undo
261 261
             $forumHandler->synchronization($newforum);
262 262
             // irmtfan full URL
263 263
             echo $action[$mode]['msg']
264
-                 . "<p><a href='"
265
-                 . XOOPS_URL
266
-                 . '/modules/'
267
-                 . $xoopsModule->getVar('dirname')
268
-                 . "/viewtopic.php?topic_id=$topic_id&amp;forum=$newforum'>"
269
-                 . _MD_NEWBB_GOTONEWFORUM
270
-                 . "</a></p><p><a href='"
271
-                 . XOOPS_URL
272
-                 . "/modules/newbb/index.php'>"
273
-                 . _MD_NEWBB_RETURNFORUMINDEX
274
-                 . '</a></p>';
264
+                    . "<p><a href='"
265
+                    . XOOPS_URL
266
+                    . '/modules/'
267
+                    . $xoopsModule->getVar('dirname')
268
+                    . "/viewtopic.php?topic_id=$topic_id&amp;forum=$newforum'>"
269
+                    . _MD_NEWBB_GOTONEWFORUM
270
+                    . "</a></p><p><a href='"
271
+                    . XOOPS_URL
272
+                    . "/modules/newbb/index.php'>"
273
+                    . _MD_NEWBB_RETURNFORUMINDEX
274
+                    . '</a></p>';
275 275
         } else {
276 276
             // irmtfan - issue with javascript:history.go(-1)
277 277
             redirect_header(Request::getString('HTTP_REFERER', '', 'SERVER'), 2, _MD_NEWBB_ERRORFORUM);
@@ -312,17 +312,17 @@  discard block
 block discarded – undo
312 312
         }
313 313
         // irmtfan full URL
314 314
         echo $action[$mode]['msg']
315
-             . "<p><a href='"
316
-             . XOOPS_URL
317
-             . '/modules/'
318
-             . $xoopsModule->getVar('dirname')
319
-             . "/viewtopic.php?topic_id=$topic_id&amp;forum=$forum'>"
320
-             . _MD_NEWBB_VIEWTHETOPIC
321
-             . "</a></p><p><a href='"
322
-             . XOOPS_URL
323
-             . "/modules/newbb/viewforum.php?forum=$forum'>"
324
-             . _MD_NEWBB_RETURNFORUMINDEX
325
-             . '</a></p>';
315
+                . "<p><a href='"
316
+                . XOOPS_URL
317
+                . '/modules/'
318
+                . $xoopsModule->getVar('dirname')
319
+                . "/viewtopic.php?topic_id=$topic_id&amp;forum=$forum'>"
320
+                . _MD_NEWBB_VIEWTHETOPIC
321
+                . "</a></p><p><a href='"
322
+                . XOOPS_URL
323
+                . "/modules/newbb/viewforum.php?forum=$forum'>"
324
+                . _MD_NEWBB_RETURNFORUMINDEX
325
+                . '</a></p>';
326 326
     }
327 327
 } else {  // No submit
328 328
     $mode = Request::getString('mode', '', 'GET'); //$_GET['mode'];
Please login to merge, or discard this patch.
admin/admin_report.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -125,18 +125,18 @@
 block discarded – undo
125 125
         $reports = $reportHandler->getAllReports('report_id', 'ASC', $limit, $start, $process_result);
126 126
         foreach ($reports as $report) {
127 127
             $post_link = '<a href="'
128
-                         . XOOPS_URL
129
-                         . '/modules/'
130
-                         . $xoopsModule->getVar('dirname')
131
-                         . '/viewtopic.php?post_id='
132
-                         . $report['post_id']
133
-                         . '&amp;topic_id='
134
-                         . $report['topic_id']
135
-                         . '&amp;forum='
136
-                         . $report['forum_id']
137
-                         . '&amp;viewmode=thread" target="checkreport">'
138
-                         . $myts->htmlSpecialChars($report['subject'])
139
-                         . '</a>';
128
+                            . XOOPS_URL
129
+                            . '/modules/'
130
+                            . $xoopsModule->getVar('dirname')
131
+                            . '/viewtopic.php?post_id='
132
+                            . $report['post_id']
133
+                            . '&amp;topic_id='
134
+                            . $report['topic_id']
135
+                            . '&amp;forum='
136
+                            . $report['forum_id']
137
+                            . '&amp;viewmode=thread" target="checkreport">'
138
+                            . $myts->htmlSpecialChars($report['subject'])
139
+                            . '</a>';
140 140
             $checkbox  = '<input type="checkbox" name="report_id[' . $report['report_id'] . ']" value="1" checked />';
141 141
             if ('processed' !== $item) {
142 142
                 $memo = '<input type="text" name="report_memo[' . $report['report_id'] . ']" maxlength="255" size="80" />';
Please login to merge, or discard this patch.
class/PostHandler.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -88,16 +88,16 @@
 block discarded – undo
88 88
         $approved = 1
89 89
     ) {
90 90
         $sql    = 'SELECT p.*, t.*, tp.topic_status FROM '
91
-                  . $this->db->prefix('newbb_posts')
92
-                  . ' p LEFT JOIN '
93
-                  . $this->db->prefix('newbb_posts_text')
94
-                  . ' t ON p.post_id=t.post_id LEFT JOIN '
95
-                  . $this->db->prefix('newbb_topics')
96
-                  . ' tp ON tp.topic_id=p.topic_id WHERE p.topic_id='
97
-                  . $topic_id
98
-                  . ' AND p.approved ='
99
-                  . $approved
100
-                  . ' ORDER BY p.post_time DESC';
91
+                    . $this->db->prefix('newbb_posts')
92
+                    . ' p LEFT JOIN '
93
+                    . $this->db->prefix('newbb_posts_text')
94
+                    . ' t ON p.post_id=t.post_id LEFT JOIN '
95
+                    . $this->db->prefix('newbb_topics')
96
+                    . ' tp ON tp.topic_id=p.topic_id WHERE p.topic_id='
97
+                    . $topic_id
98
+                    . ' AND p.approved ='
99
+                    . $approved
100
+                    . ' ORDER BY p.post_time DESC';
101 101
         $result = $this->db->query($sql, $limit, 0);
102 102
         $ret    = [];
103 103
         while (false !== ($myrow = $this->db->fetchArray($result))) {
Please login to merge, or discard this patch.
class/TypeHandler.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
         $forums = (is_array($forums) ? array_filter(array_map('intval', array_map('trim', $forums))) : (empty($forums) ? 0 : [(int)$forums]));
43 43
 
44 44
         $sql = '    SELECT o.type_id, o.type_name, o.type_color, l.type_order'
45
-               . '     FROM '
46
-               . $this->db->prefix('newbb_type_forum')
47
-               . ' AS l '
48
-               . "         LEFT JOIN {$this->table} AS o ON o.{$this->keyName} = l.{$this->keyName} "
49
-               . '     WHERE '
50
-               . '        l.forum_id '
51
-               . (empty($forums) ? 'IS NOT NULL' : 'IN (' . implode(', ', $forums) . ')')
52
-               . '         ORDER BY l.type_order ASC';
45
+                . '     FROM '
46
+                . $this->db->prefix('newbb_type_forum')
47
+                . ' AS l '
48
+                . "         LEFT JOIN {$this->table} AS o ON o.{$this->keyName} = l.{$this->keyName} "
49
+                . '     WHERE '
50
+                . '        l.forum_id '
51
+                . (empty($forums) ? 'IS NOT NULL' : 'IN (' . implode(', ', $forums) . ')')
52
+                . '         ORDER BY l.type_order ASC';
53 53
         if (false === ($result = $this->db->query($sql))) {
54 54
             //xoops_error($this->db->error());
55 55
             return $ret;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         if (!empty($types_valid)) {
107 107
             $sql = 'DELETE FROM ' . $this->db->prefix('newbb_type_forum') . ' WHERE ' . ' forum_id = ' . $forum_id . ' AND ' . // irmtfan bug fix: delete other forums types when update the type for a specific forum
108
-                   "     {$this->keyName} NOT IN (" . implode(', ', $types_valid) . ')';
108
+                    "     {$this->keyName} NOT IN (" . implode(', ', $types_valid) . ')';
109 109
             if (false === ($result = $this->db->queryF($sql))) {
110 110
             }
111 111
         }
Please login to merge, or discard this patch.
class/IconHandler.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,8 +110,8 @@
 block discarded – undo
110 110
             $path = is_dir($theme_path . "/{$rel_dir}/{$type}/") ? $theme_path . "/{$rel_dir}/{$type}" : (
111 111
                 is_dir($theme_path . "/{$rel_dir}/{$default}/") ? $theme_path . "/{$rel_dir}/{$default}" : (
112 112
                 is_dir(XOOPS_THEME_PATH . "/default/{$rel_dir}/{$type}/") ? XOOPS_THEME_PATH
113
-                 . "/default/{$rel_dir}/{$type}" : (
114
-                     is_dir(XOOPS_THEME_PATH . "/default/{$rel_dir}/{$default}/") ? XOOPS_THEME_PATH . "/default/{$rel_dir}/{$default}"
113
+                    . "/default/{$rel_dir}/{$type}" : (
114
+                        is_dir(XOOPS_THEME_PATH . "/default/{$rel_dir}/{$default}/") ? XOOPS_THEME_PATH . "/default/{$rel_dir}/{$default}"
115 115
                     : (is_dir($GLOBALS['xoops']->path("modules/{$dirname}/templates/{$endDir}/{$type}/")) ? $GLOBALS['xoops']->path("modules/{$dirname}/templates/{$endDir}/{$type}")
116 116
                     : $GLOBALS['xoops']->path("modules/{$dirname}/templates/{$endDir}/{$default}")) // XOOPS_ROOT_PATH
117 117
             ) // XOOPS_THEME_PATH {$default}
Please login to merge, or discard this patch.
class/OnlineHandler.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -252,18 +252,18 @@
 block discarded – undo
252 252
         $xoopsOnlineTable    = $xoops_onlineHandler->table;
253 253
 
254 254
         $sql = 'DELETE FROM '
255
-               . $this->db->prefix('newbb_online')
256
-               . ' WHERE'
257
-               . ' ( online_uid > 0 AND online_uid NOT IN ( SELECT online_uid FROM '
258
-               . $xoopsOnlineTable
259
-               . ' WHERE online_module ='
260
-               . $xoopsModule->getVar('mid')
261
-               . ' ) )'
262
-               . ' OR ( online_uid = 0 AND online_ip NOT IN ( SELECT online_ip FROM '
263
-               . $xoopsOnlineTable
264
-               . ' WHERE online_module ='
265
-               . $xoopsModule->getVar('mid')
266
-               . ' AND online_uid = 0 ) )';
255
+                . $this->db->prefix('newbb_online')
256
+                . ' WHERE'
257
+                . ' ( online_uid > 0 AND online_uid NOT IN ( SELECT online_uid FROM '
258
+                . $xoopsOnlineTable
259
+                . ' WHERE online_module ='
260
+                . $xoopsModule->getVar('mid')
261
+                . ' ) )'
262
+                . ' OR ( online_uid = 0 AND online_ip NOT IN ( SELECT online_ip FROM '
263
+                . $xoopsOnlineTable
264
+                . ' WHERE online_module ='
265
+                . $xoopsModule->getVar('mid')
266
+                . ' AND online_uid = 0 ) )';
267 267
 
268 268
         if ($result = $this->db->queryF($sql)) {
269 269
             return true;
Please login to merge, or discard this patch.
class/DigestHandler.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -214,18 +214,18 @@
 block discarded – undo
214 214
         $reply_criteria = $GLOBALS['xoopsModuleConfig']['allow_require_reply'] ? ' AND p.require_reply=0' : '';
215 215
 
216 216
         $query = 'SELECT t.topic_id, t.forum_id, t.topic_title, t.topic_time, t.digest_time, p.uid, p.poster_name, pt.post_text FROM '
217
-                 . $this->db->prefix('newbb_topics')
218
-                 . ' t, '
219
-                 . $this->db->prefix('newbb_posts_text')
220
-                 . ' pt, '
221
-                 . $this->db->prefix('newbb_posts')
222
-                 . ' p WHERE t.topic_digest = 1 AND p.topic_id=t.topic_id AND p.pid=0 '
223
-                 . $forumCriteria
224
-                 . $approveCriteria
225
-                 . $time_criteria
226
-                 . $karma_criteria
227
-                 . $reply_criteria
228
-                 . ' AND pt.post_id=p.post_id ORDER BY t.digest_time DESC';
217
+                    . $this->db->prefix('newbb_topics')
218
+                    . ' t, '
219
+                    . $this->db->prefix('newbb_posts_text')
220
+                    . ' pt, '
221
+                    . $this->db->prefix('newbb_posts')
222
+                    . ' p WHERE t.topic_digest = 1 AND p.topic_id=t.topic_id AND p.pid=0 '
223
+                    . $forumCriteria
224
+                    . $approveCriteria
225
+                    . $time_criteria
226
+                    . $karma_criteria
227
+                    . $reply_criteria
228
+                    . ' AND pt.post_id=p.post_id ORDER BY t.digest_time DESC';
229 229
         if (!$result = $this->db->query($query)) {
230 230
             //echo "<br>No result:<br>$query";
231 231
             return false;
Please login to merge, or discard this patch.
polls.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -119,12 +119,12 @@  discard block
 block discarded – undo
119 119
             $classOption  = $classPoll . 'Option';
120 120
             $poll_form    = new \XoopsThemeForm(_MD_NEWBB_POLL_CREATNEWPOLL, 'poll_form', 'polls.php', 'post', true);
121 121
             $author_label = new \XoopsFormLabel(_MD_NEWBB_POLL_AUTHOR, is_object($GLOBALS['xoopsUser']) ? ("<a href='"
122
-                                                                                                          . XOOPS_URL
123
-                                                                                                          . '/userinfo.php?uid='
124
-                                                                                                          . $GLOBALS['xoopsUser']->getVar('uid')
125
-                                                                                                          . "'>"
126
-                                                                                                          . newbbGetUnameFromId($GLOBALS['xoopsUser']->getVar('uid'), $GLOBALS['xoopsModuleConfig']['show_realname'])
127
-                                                                                                          . '</a>') : $GLOBALS['xoopsConfig']['anonymous']);
122
+                                                                                                            . XOOPS_URL
123
+                                                                                                            . '/userinfo.php?uid='
124
+                                                                                                            . $GLOBALS['xoopsUser']->getVar('uid')
125
+                                                                                                            . "'>"
126
+                                                                                                            . newbbGetUnameFromId($GLOBALS['xoopsUser']->getVar('uid'), $GLOBALS['xoopsModuleConfig']['show_realname'])
127
+                                                                                                            . '</a>') : $GLOBALS['xoopsConfig']['anonymous']);
128 128
             $poll_form->addElement($author_label);
129 129
             $question_text = new \XoopsFormText(_MD_NEWBB_POLL_POLLQUESTION, 'question', 50, 255);
130 130
             $poll_form->addElement($question_text);
@@ -154,12 +154,12 @@  discard block
 block discarded – undo
154 154
                 $color_select->addOptionArray($barcolor_array);
155 155
                 $color_select->setExtra("onchange='showImgSelected(\"option_color_image[{$i}]\", \"option_color[{$i}]\", \"modules/" . $GLOBALS['xoopsModuleConfig']['poll_module'] . '/assets/images/colorbars", "", "' . XOOPS_URL . "\")'");
156 156
                 $color_label = new \XoopsFormLabel('', "<img src='"
157
-                                                      . XOOPS_URL
158
-                                                      . '/modules/'
159
-                                                      . $GLOBALS['xoopsModuleConfig']['poll_module']
160
-                                                      . '/assets/images/colorbars/'
161
-                                                      . $current_bar
162
-                                                      . "' name='option_color_image[{$i}]' id='option_color_image[{$i}]' width='30' align='bottom' height='15' alt='' /><br>");
157
+                                                        . XOOPS_URL
158
+                                                        . '/modules/'
159
+                                                        . $GLOBALS['xoopsModuleConfig']['poll_module']
160
+                                                        . '/assets/images/colorbars/'
161
+                                                        . $current_bar
162
+                                                        . "' name='option_color_image[{$i}]' id='option_color_image[{$i}]' width='30' align='bottom' height='15' alt='' /><br>");
163 163
                 $option_tray->addElement($color_select);
164 164
                 $option_tray->addElement($color_label);
165 165
                 if (!next($barcolor_array)) {
@@ -228,8 +228,8 @@  discard block
 block discarded – undo
228 228
                 $color_select->addOptionArray($barcolor_array);
229 229
                 $color_select->setExtra("onchange='showImgSelected(\"option_color_image[{$i}]\", \"option_color[" . $i . "]\", \"modules/{$GLOBALS['xoopsModuleConfig']['poll_module']}/assets/images/colorbars\", \"\", \"" . XOOPS_URL . "\")'");
230 230
                 $color_label = new \XoopsFormLabel('', "<img src='"
231
-                                                      . $GLOBALS['xoops']->url("modules/{$GLOBALS['xoopsModuleConfig']['poll_module']}/assets/images/colorbars/" . $option->getVar('option_color', 'E'))
232
-                                                      . "' name='option_color_image[{$i}]' id='option_color_image[{$i}]' class='alignbottom' width='30' height='15' alt='' /><br>");
231
+                                                        . $GLOBALS['xoops']->url("modules/{$GLOBALS['xoopsModuleConfig']['poll_module']}/assets/images/colorbars/" . $option->getVar('option_color', 'E'))
232
+                                                        . "' name='option_color_image[{$i}]' id='option_color_image[{$i}]' class='alignbottom' width='30' height='15' alt='' /><br>");
233 233
                 $option_tray->addElement($color_select);
234 234
                 $option_tray->addElement($color_label);
235 235
                 unset($color_select, $color_label);
@@ -518,8 +518,8 @@  discard block
 block discarded – undo
518 518
                 $color_select->addOptionArray($barcolor_array);
519 519
                 $color_select->setExtra("onchange='showImgSelected(\"option_color_image[{$i}]\", \"option_color[{$i}]\", \"modules/{$GLOBALS['xoopsModuleConfig']['poll_module']}/assets/images/colorbars\", \"\", \"" . XOOPS_URL . "\")'");
520 520
                 $color_label = new \XoopsFormLabel('', "<img src='"
521
-                                                      . $GLOBALS['xoops']->url("modules/{$GLOBALS['xoopsModuleConfig']['poll_module']}/assets/images/colorbars/{$current_bar}")
522
-                                                      . "' name='option_color_image[{$i}]' id='option_color_image[{$i}]' class='alignbottom' width='30' height='15' alt='' /><br>");
521
+                                                        . $GLOBALS['xoops']->url("modules/{$GLOBALS['xoopsModuleConfig']['poll_module']}/assets/images/colorbars/{$current_bar}")
522
+                                                        . "' name='option_color_image[{$i}]' id='option_color_image[{$i}]' class='alignbottom' width='30' height='15' alt='' /><br>");
523 523
                 $option_tray->addElement($color_select);
524 524
                 $option_tray->addElement($color_label);
525 525
                 unset($color_select, $color_label, $option_text);
@@ -652,9 +652,9 @@  discard block
 block discarded – undo
652 652
         $expire_text = new \XoopsFormText(
653 653
             _MD_NEWBB_POLL_EXPIRATION . '<br><small>' . _MD_NEWBB_POLL_FORMAT . '<br>' . sprintf(_MD_NEWBB_POLL_CURRENTTIME, formatTimestamp(time(), 'Y-m-d H:i:s')) . '<br>' . sprintf(
654 654
             _MD_NEWBB_POLL_EXPIREDAT,
655
-                                                                                                                                                                                                                     formatTimestamp($pollObject->getVar('end_time'), 'Y-m-d H:i:s')
655
+                                                                                                                                                                                                                        formatTimestamp($pollObject->getVar('end_time'), 'Y-m-d H:i:s')
656 656
         ) . '</small>',
657
-                                         'end_time',
657
+                                            'end_time',
658 658
             20,
659 659
             19,
660 660
             formatTimestamp(time() + $default_poll_duration, 'Y-m-d H:i:s')
Please login to merge, or discard this patch.