Completed
Pull Request — master (#616)
by Richard
13:56
created
htdocs/modules/comments/admin/main.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  * @package         comments
26 26
  */
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 
30 30
 // Get main instance
31 31
 $xoops = Xoops::getInstance();
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
 $status_array =
47 47
     array(Comments::STATUS_PENDING => _MD_COMMENTS_PENDING, Comments::STATUS_ACTIVE => _MD_COMMENTS_ACTIVE, Comments::STATUS_HIDDEN => _MD_COMMENTS_HIDDEN);
48 48
 $status_array2 = array(
49
-    Comments::STATUS_PENDING => '<span style="text-decoration: none; font-weight: bold; color: #008000;">' . _MD_COMMENTS_PENDING . '</span>',
50
-    Comments::STATUS_ACTIVE => '<span style="text-decoration: none; font-weight: bold; color: #ff0000;">' . _MD_COMMENTS_ACTIVE . '</span>',
51
-    Comments::STATUS_HIDDEN => '<span style="text-decoration: none; font-weight: bold; color: #0000ff;">' . _MD_COMMENTS_HIDDEN . '</span>'
49
+    Comments::STATUS_PENDING => '<span style="text-decoration: none; font-weight: bold; color: #008000;">'._MD_COMMENTS_PENDING.'</span>',
50
+    Comments::STATUS_ACTIVE => '<span style="text-decoration: none; font-weight: bold; color: #ff0000;">'._MD_COMMENTS_ACTIVE.'</span>',
51
+    Comments::STATUS_HIDDEN => '<span style="text-decoration: none; font-weight: bold; color: #0000ff;">'._MD_COMMENTS_HIDDEN.'</span>'
52 52
 );
53 53
 $start = 0;
54 54
 $status_array[0] = _AM_COMMENTS_FORM_ALL_STATUS;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 $module_handler = $xoops->getHandlerModule();
64 64
 $available_plugins = \Xoops\Module\Plugin::getPlugins('comments');
65 65
 if (!empty($available_plugins)) {
66
-    $criteria = new Criteria('dirname', "('" . implode("','", array_keys($available_plugins)).  "')", 'IN');
66
+    $criteria = new Criteria('dirname', "('".implode("','", array_keys($available_plugins))."')", 'IN');
67 67
     $module_array = $module_handler->getNameList($criteria);
68 68
 }
69 69
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 /* @var $plugin CommentsPluginInterface */
82 82
                 $module = $xoops->getModuleById($comment->getVar('modid'));
83 83
                 $plugin = Xoops\Module\Plugin::getPlugin($module->getVar('dirname'), 'comments');
84
-                header('Location: ' . \XoopsBaseConfig::get('url') . '/modules/' . $module->getVar('dirname') . '/' . $plugin->pageName() . '?' . $plugin->itemName() . '=' . $comment->getVar('itemid') . '&id=' . $comment->getVar('id') . '&rootid=' . $comment->getVar('rootid') . '&mode=thread&' . str_replace('&amp;', '&', $comment->getVar('exparams')) . '#comment' . $comment->getVar('id'));
84
+                header('Location: '.\XoopsBaseConfig::get('url').'/modules/'.$module->getVar('dirname').'/'.$plugin->pageName().'?'.$plugin->itemName().'='.$comment->getVar('itemid').'&id='.$comment->getVar('id').'&rootid='.$comment->getVar('rootid').'&mode=thread&'.str_replace('&amp;', '&', $comment->getVar('exparams')).'#comment'.$comment->getVar('id'));
85 85
                 exit();
86 86
             }
87 87
         }
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         }
258 258
 
259 259
         $url = $helper->url('admin/main.php');
260
-        $form = '<form class="form-inline" action="' . $url . '" method="post">
260
+        $form = '<form class="form-inline" action="'.$url.'" method="post">
261 261
                 <select class="span2" name="comments_module">';
262 262
 
263 263
         foreach ($module_array as $k => $v) {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
             if ($k == $module) {
266 266
                 $sel = ' selected="selected"';
267 267
             }
268
-            $form .= '<option value="' . $k . '"' . $sel . '>' . $v . '</option>';
268
+            $form .= '<option value="'.$k.'"'.$sel.'>'.$v.'</option>';
269 269
         }
270 270
         $form .= '</select>&nbsp;<select class="span2" name="comments_status">';
271 271
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
             if (isset($status) && $k == $status) {
275 275
                 $sel = ' selected="selected"';
276 276
             }
277
-            $form .= '<option value="' . $k . '"' . $sel . '>' . $v . '</option>';
277
+            $form .= '<option value="'.$k.'"'.$sel.'>'.$v.'</option>';
278 278
         }
279 279
 
280 280
 
@@ -284,12 +284,12 @@  discard block
 block discarded – undo
284 284
             if (isset($limit) && $k == $limit) {
285 285
                 $sel = ' selected="selected"';
286 286
             }
287
-            $form .= '<option value="' . $k . '"' . $sel . '>' . $k . '</option>';
287
+            $form .= '<option value="'.$k.'"'.$sel.'>'.$k.'</option>';
288 288
         }
289
-        $form .= '</select>&nbsp;<input class ="btn" type="submit" value="' . XoopsLocale::A_GO . '" name="selsubmit" /></form>';
289
+        $form .= '</select>&nbsp;<input class ="btn" type="submit" value="'.XoopsLocale::A_GO.'" name="selsubmit" /></form>';
290 290
 
291 291
         $xoops->tpl()->assign('form_sort', $form);
292
-        $xoops->tpl()->assign('php_selft', $_SERVER['PHP_SELF'] . '?op=comments_purge');
292
+        $xoops->tpl()->assign('php_selft', $_SERVER['PHP_SELF'].'?op=comments_purge');
293 293
 
294 294
         if ($comments_count > 0) {
295 295
             foreach (array_keys($comments_arr) as $i) {
@@ -298,18 +298,18 @@  discard block
 block discarded – undo
298 298
                 if ($comments_arr[$i]->getVar('uid') > 0) {
299 299
                     $poster = $member_handler->getUser($comments_arr[$i]->getVar('uid'));
300 300
                     if (is_object($poster)) {
301
-                        $comments_poster_uname = '<a href="' . \XoopsBaseConfig::get('url') . '/userinfo.php?uid=' . $comments_arr[$i]->getVar('uid') . '">' . $poster->getVar('uname') . '</a>';
301
+                        $comments_poster_uname = '<a href="'.\XoopsBaseConfig::get('url').'/userinfo.php?uid='.$comments_arr[$i]->getVar('uid').'">'.$poster->getVar('uname').'</a>';
302 302
                     }
303 303
                 }
304 304
 
305 305
                 $comments_icon = ($comments_arr[$i]->getVar('icon') == '') ? '/images/icons/no_posticon.gif'
306
-                    : '/images/subject/' . htmlspecialchars($comments_arr[$i]->getVar('icon'), ENT_QUOTES);
307
-                $comments_icon = '<img src="' . \XoopsBaseConfig::get('url') . $comments_icon . '" alt="" />';
306
+                    : '/images/subject/'.htmlspecialchars($comments_arr[$i]->getVar('icon'), ENT_QUOTES);
307
+                $comments_icon = '<img src="'.\XoopsBaseConfig::get('url').$comments_icon.'" alt="" />';
308 308
 
309 309
                 $comments['comments_id'] = $id;
310 310
                 $comments['comments_poster'] = $comments_poster_uname;
311 311
                 $comments['comments_icon'] = $comments_icon;
312
-                $comments['comments_title'] = '<a href="main.php?op=comments_jump&amp;item_id=' . $comments_arr[$i]->getVar("id") . '">' . $comments_arr[$i]->getVar("title")  . '</a>';
312
+                $comments['comments_title'] = '<a href="main.php?op=comments_jump&amp;item_id='.$comments_arr[$i]->getVar("id").'">'.$comments_arr[$i]->getVar("title").'</a>';
313 313
                 $comments['comments_ip'] = $comments_arr[$i]->getVar('ip');
314 314
                 $comments['comments_date'] = XoopsLocale::formatTimestamp($comments_arr[$i]->getVar('created'));
315 315
                 $comments['comments_text'] = $myts->undoHtmlSpecialChars($comments_arr[$i]->getVar('text'));
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
             }
325 325
 
326 326
             if ($comments_count > $comments_limit) {
327
-                $nav = new XoopsPageNav($comments_count, $comments_limit, $comments_start, 'comments_start', 'comments_module=' . $comments_module . '&amp;comments_status=' . $comments_status);
327
+                $nav = new XoopsPageNav($comments_count, $comments_limit, $comments_start, 'comments_start', 'comments_module='.$comments_module.'&amp;comments_status='.$comments_status);
328 328
                 $xoops->tpl()->assign('nav', $nav->renderNav());
329 329
             }
330 330
         }
Please login to merge, or discard this patch.
htdocs/modules/comments/class/helper.php 1 patch
Spacing   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
 
135 135
             echo $this->renderHeader($title, $text, $uid, $timestamp);
136 136
 
137
-            if (!preg_match("/^" . XoopsLocale::C_RE . "/i", $title)) {
138
-                $title = XoopsLocale::C_RE . " " . XoopsLocale::substr($title, 0, 56);
137
+            if (!preg_match("/^".XoopsLocale::C_RE."/i", $title)) {
138
+                $title = XoopsLocale::C_RE." ".XoopsLocale::substr($title, 0, 56);
139 139
             }
140 140
 
141 141
             $obj->setVar('itemid', $itemid);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     public function displayPost()
152 152
     {
153 153
         $xoops = Xoops::getInstance();
154
-        if (Request::getMethod()!=='POST') {
154
+        if (Request::getMethod() !== 'POST') {
155 155
             $xoops->redirect(\XoopsBaseConfig::get('url'), 1, XoopsLocale::E_NO_ACCESS_PERMISSION);
156 156
         }
157 157
         $id = Request::getInt('com_id');
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             if (empty($id)) {
184 184
                 $xoops->redirect(\XoopsBaseConfig::get('url'), 1, XoopsLocale::E_NO_ACCESS_PERMISSION);
185 185
             }
186
-            $redirect_page = $this->url('admin/main.php?com_modid=' . $modid . '&amp;com_itemid');
186
+            $redirect_page = $this->url('admin/main.php?com_modid='.$modid.'&amp;com_itemid');
187 187
         } else {
188 188
             if (static::APPROVE_NONE == $xoops->getModuleConfig('com_rule', $moddir)) {
189 189
                 $xoops->redirect(\XoopsBaseConfig::get('url'), 1, XoopsLocale::E_NO_ACCESS_PERMISSION);
@@ -194,13 +194,13 @@  discard block
 block discarded – undo
194 194
         /* @var $plugin CommentsPluginInterface */
195 195
         if ($plugin = \Xoops\Module\Plugin::getPlugin($moddir, 'comments')) {
196 196
             if (!$xoops->isAdminSide) {
197
-                $redirect_page = $xoops->url('modules/' . $moddir . '/' . $plugin->pageName() . '?');
197
+                $redirect_page = $xoops->url('modules/'.$moddir.'/'.$plugin->pageName().'?');
198 198
                 if (is_array($extraParams = $plugin->extraParams())) {
199 199
                     $extra_params = '';
200 200
                     foreach ($extraParams as $extra_param) {
201 201
                         $extra_params .= isset($_POST[$extra_param])
202
-                            ? $extra_param . '=' . htmlspecialchars($_POST[$extra_param]) . '&amp;'
203
-                            : $extra_param . '=amp;';
202
+                            ? $extra_param.'='.htmlspecialchars($_POST[$extra_param]).'&amp;'
203
+                            : $extra_param.'=amp;';
204 204
                     }
205 205
                     $redirect_page .= $extra_params;
206 206
                 }
@@ -328,9 +328,9 @@  discard block
 block discarded – undo
328 328
                         }
329 329
                         if (false != $accesserror) {
330 330
                             $xoops->redirect(
331
-                                $redirect_page . '=' . $comment->getVar('itemid')
332
-                                . '&amp;com_id=' . $comment->getVar('id')
333
-                                . '&amp;com_mode=' . $mode . '&amp;com_order=' . $order,
331
+                                $redirect_page.'='.$comment->getVar('itemid')
332
+                                . '&amp;com_id='.$comment->getVar('id')
333
+                                . '&amp;com_mode='.$mode.'&amp;com_order='.$order,
334 334
                                 1,
335 335
                                 XoopsLocale::E_NO_ACCESS_PERMISSION
336 336
                             );
@@ -377,9 +377,9 @@  discard block
 block discarded – undo
377 377
                             $comment->setVar('uid', 0);
378 378
                             if ($xoops->getModuleConfig('com_anonpost', $module->getVar('dirname')) != 1) {
379 379
                                 $xoops->redirect(
380
-                                    $redirect_page . '=' . $comment->getVar('itemid')
381
-                                    . '&amp;com_id=' . $comment->getVar('id') . '&amp;com_mode=' . $mode
382
-                                    . '&amp;com_order=' . $order,
380
+                                    $redirect_page.'='.$comment->getVar('itemid')
381
+                                    . '&amp;com_id='.$comment->getVar('id').'&amp;com_mode='.$mode
382
+                                    . '&amp;com_order='.$order,
383 383
                                     1,
384 384
                                     XoopsLocale::E_NO_ACCESS_PERMISSION
385 385
                                 );
@@ -461,11 +461,11 @@  discard block
 block discarded – undo
461 461
                             // point to a viewable page (i.e. not the system administration
462 462
                             // module).
463 463
                             $comment_tags = array();
464
-                            $comment_tags['X_COMMENT_URL'] = $comment_url . '=' . $comment->getVar('itemid')
465
-                                . '&amp;com_id=' . $comment->getVar('id')
466
-                                . '&amp;com_rootid=' . $comment->getVar('rootid')
467
-                                . '&amp;com_mode=' . $mode . '&amp;com_order=' . $order
468
-                                . '#comment' . $comment->getVar('id');
464
+                            $comment_tags['X_COMMENT_URL'] = $comment_url.'='.$comment->getVar('itemid')
465
+                                . '&amp;com_id='.$comment->getVar('id')
466
+                                . '&amp;com_rootid='.$comment->getVar('rootid')
467
+                                . '&amp;com_mode='.$mode.'&amp;com_order='.$order
468
+                                . '#comment'.$comment->getVar('id');
469 469
 
470 470
                             if ($xoops->isActiveModule('notifications')) {
471 471
                                 Notifications::getInstance()->getHandlerNotification()->triggerEvent($not_category, $not_itemid, $not_event, $comment_tags, false, $not_modid);
@@ -475,18 +475,18 @@  discard block
 block discarded – undo
475 475
                             // if the comment is active, redirect to posted comment
476 476
                             if ($comment->getVar('status') == static::STATUS_ACTIVE) {
477 477
                                 $xoops->redirect(
478
-                                    $redirect_page . '=' . $comment->getVar('itemid')
479
-                                    . '&amp;com_id=' . $comment->getVar('id')
480
-                                    . '&amp;com_rootid=' . $comment->getVar('rootid') . '&amp;com_mode=' . $mode
481
-                                    . '&amp;com_order=' . $order . '#comment' . $comment->getVar('id'),
478
+                                    $redirect_page.'='.$comment->getVar('itemid')
479
+                                    . '&amp;com_id='.$comment->getVar('id')
480
+                                    . '&amp;com_rootid='.$comment->getVar('rootid').'&amp;com_mode='.$mode
481
+                                    . '&amp;com_order='.$order.'#comment'.$comment->getVar('id'),
482 482
                                     1,
483 483
                                     _MD_COMMENTS_THANKSPOST
484 484
                                 );
485 485
                             } else {
486 486
                                 // not active, so redirect to top comment page
487 487
                                 $xoops->redirect(
488
-                                    $redirect_page . '=' . $comment->getVar('itemid') . '&amp;com_mode=' . $mode
489
-                                    . '&amp;com_order=' . $order . '#comment' . $comment->getVar('id'),
488
+                                    $redirect_page.'='.$comment->getVar('itemid').'&amp;com_mode='.$mode
489
+                                    . '&amp;com_order='.$order.'#comment'.$comment->getVar('id'),
490 490
                                     1,
491 491
                                     _MD_COMMENTS_THANKSPOST
492 492
                                 );
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
                     break;
505 505
                 default:
506 506
                     $xoops->redirect(
507
-                        \XoopsBaseConfig::get('url') . '/',
507
+                        \XoopsBaseConfig::get('url').'/',
508 508
                         1,
509 509
                         implode('<br />', $xoops->security()->getErrors())
510 510
                     );
@@ -543,8 +543,8 @@  discard block
 block discarded – undo
543 543
         $reply = $this->getHandlerComment()->create();
544 544
 
545 545
         $title = $comment->getVar('title', 'e');
546
-        if (!preg_match("/^" . XoopsLocale::C_RE . "/i", $title)) {
547
-            $title = XoopsLocale::C_RE . " " . XoopsLocale::substr($title, 0, 56);
546
+        if (!preg_match("/^".XoopsLocale::C_RE."/i", $title)) {
547
+            $title = XoopsLocale::C_RE." ".XoopsLocale::substr($title, 0, 56);
548 548
         }
549 549
         $reply->setVar('title', $title);
550 550
         $reply->setVar('modid', $comment->getVar('modid'));
@@ -574,12 +574,12 @@  discard block
 block discarded – undo
574 574
     public function renderHeader($title, $text, $uid, $timestamp)
575 575
     {
576 576
         $ret = '<table cellpadding="4" cellspacing="1" width="98%" class="outer">
577
-      <tr><td class="head">' . $title . '</td></tr><tr><td><br />';
577
+      <tr><td class="head">' . $title.'</td></tr><tr><td><br />';
578 578
         if ($uid) {
579
-            $ret .= _MD_COMMENTS_POSTER . ': <strong>' . XoopsUser::getUnameFromId($uid) . '</strong>&nbsp;&nbsp;';
579
+            $ret .= _MD_COMMENTS_POSTER.': <strong>'.XoopsUser::getUnameFromId($uid).'</strong>&nbsp;&nbsp;';
580 580
         }
581
-        $ret .= _MD_COMMENTS_POSTED . ': <strong>' . XoopsLocale::formatTimestamp($timestamp)
582
-            . '</strong><br /><br />' . $text . '<br /></td></tr>';
581
+        $ret .= _MD_COMMENTS_POSTED.': <strong>'.XoopsLocale::formatTimestamp($timestamp)
582
+            . '</strong><br /><br />'.$text.'<br /></td></tr>';
583 583
         $ret .= '</table>';
584 584
         return $ret;
585 585
     }
@@ -633,19 +633,19 @@  discard block
 block discarded – undo
633 633
                         $renderer->renderFlatView($admin_view);
634 634
                     } elseif ($mode === 'thread') {
635 635
                         // RMV-FIX... added extraParam stuff here
636
-                        $comment_url = $plugin->pageName() . '?';
636
+                        $comment_url = $plugin->pageName().'?';
637 637
                         if (is_array($extraParams = $plugin->extraParams())) {
638 638
                             $extra_params = '';
639 639
                             foreach ($extraParams as $extra_param) {
640 640
                                 // This page is included in the module hosting page -- param could be from anywhere
641 641
 
642 642
                                 if (isset($_POST[$extra_param])) {
643
-                                    $extra_params .= $extra_param . '=' . $_POST[$extra_param] . '&amp;';
643
+                                    $extra_params .= $extra_param.'='.$_POST[$extra_param].'&amp;';
644 644
                                 } else {
645 645
                                     if (isset($_GET[$extra_param])) {
646
-                                        $extra_params .= $extra_param . '=' . $_GET[$extra_param] . '&amp;';
646
+                                        $extra_params .= $extra_param.'='.$_GET[$extra_param].'&amp;';
647 647
                                     } else {
648
-                                        $extra_params .= $extra_param . '=&amp;';
648
+                                        $extra_params .= $extra_param.'=&amp;';
649 649
                                     }
650 650
                                 }
651 651
                             }
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
                         }
654 654
                         $xoops->tpl()->assign(
655 655
                             'comment_url',
656
-                            $comment_url . $plugin->itemName() . '=' . $itemid . '&amp;com_mode=thread&amp;com_order='
656
+                            $comment_url.$plugin->itemName().'='.$itemid.'&amp;com_mode=thread&amp;com_order='
657 657
                             . $order
658 658
                         );
659 659
                         if (!empty($id) && !empty($rootid) && ($id != $rootid)) {
@@ -717,8 +717,8 @@  discard block
 block discarded – undo
717 717
                     unset($postcomment_link);
718 718
                     if ($xoops->getModuleConfig('com_anonpost') || $xoops->isUser()) {
719 719
                         $postcomment_link = $this->url(
720
-                            'comment_new.php?com_modid=' . $modid . '&amp;com_itemid=' . $itemid
721
-                            . '&amp;com_order=' . $order . '&amp;com_mode=' . $mode
720
+                            'comment_new.php?com_modid='.$modid.'&amp;com_itemid='.$itemid
721
+                            . '&amp;com_order='.$order.'&amp;com_mode='.$mode
722 722
                         );
723 723
                         $xoops->tpl()->assign('anon_canpost', true);
724 724
                     }
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
                                 }
734 734
                             }
735 735
                             if (isset($extra_param_val)) {
736
-                                $link_extra .= '&amp;' . $extra_param . '=' . $extra_param_val;
736
+                                $link_extra .= '&amp;'.$extra_param.'='.$extra_param_val;
737 737
                                 $hidden_value = htmlspecialchars($extra_param_val, ENT_QUOTES);
738 738
                                 $xoops->tpl()->assign('extra_param', $extra_param);
739 739
                                 $xoops->tpl()->assign('hidden_value', $hidden_value);
@@ -745,9 +745,9 @@  discard block
 block discarded – undo
745 745
                         $xoops->tpl()->assign('link_extra', $link_extra);
746 746
                     }
747 747
                     $xoops->tpl()->assign(array(
748
-                        'comments_editlink'   => $this->url('comment_edit.php?com_modid=' . $modid . '&amp;com_itemid=' . $itemid . '&amp;com_order=' . $order . '&amp;com_mode=' . $mode . '' . $link_extra),
749
-                        'comments_deletelink' => $this->url('comment_delete.php?com_modid=' . $modid . '&amp;com_itemid=' . $itemid . '&amp;com_order=' . $order . '&amp;com_mode=' . $mode . '' . $link_extra),
750
-                        'comments_replylink'  => $this->url('comment_reply.php?com_modid=' . $modid . '&amp;com_itemid=' . $itemid . '&amp;com_order=' . $order . '&amp;com_mode=' . $mode . '' . $link_extra)
748
+                        'comments_editlink'   => $this->url('comment_edit.php?com_modid='.$modid.'&amp;com_itemid='.$itemid.'&amp;com_order='.$order.'&amp;com_mode='.$mode.''.$link_extra),
749
+                        'comments_deletelink' => $this->url('comment_delete.php?com_modid='.$modid.'&amp;com_itemid='.$itemid.'&amp;com_order='.$order.'&amp;com_mode='.$mode.''.$link_extra),
750
+                        'comments_replylink'  => $this->url('comment_reply.php?com_modid='.$modid.'&amp;com_itemid='.$itemid.'&amp;com_order='.$order.'&amp;com_mode='.$mode.''.$link_extra)
751 751
                     ));
752 752
 
753 753
                     // assign some lang variables
@@ -833,14 +833,14 @@  discard block
 block discarded – undo
833 833
         /* @var $plugin CommentsPluginInterface */
834 834
         if ($plugin = \Xoops\Module\Plugin::getPlugin($module->getVar('dirname'), 'comments')) {
835 835
             if ($xoops->isAdminSide) {
836
-                $redirect_page = $this->url('admin/main.php?com_modid=' . $modid . '&amp;com_itemid');
836
+                $redirect_page = $this->url('admin/main.php?com_modid='.$modid.'&amp;com_itemid');
837 837
             } else {
838
-                $redirect_page = $xoops->url('modules/' . $module->getVar('dirname') . '/' . $plugin->pageName() . '?');
838
+                $redirect_page = $xoops->url('modules/'.$module->getVar('dirname').'/'.$plugin->pageName().'?');
839 839
                 $comment_confirm_extra = array();
840 840
                 if (is_array($extraParams = $plugin->extraParams())) {
841 841
                     foreach ($extraParams as $extra_param) {
842 842
                         if (isset($_GET[$extra_param])) {
843
-                            $redirect_page .= $extra_param . '=' . $_GET[$extra_param] . '&amp;';
843
+                            $redirect_page .= $extra_param.'='.$_GET[$extra_param].'&amp;';
844 844
                             // for the confirmation page
845 845
                             $comment_confirm_extra[$extra_param] = $_GET[$extra_param];
846 846
                         }
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
                     $xoops->redirect($ref, 2, XoopsLocale::E_NO_ACCESS_PERMISSION);
865 865
                 } else {
866 866
                     $xoops->redirect(
867
-                        $redirect_page . '?' . $plugin->itemName() . '=' . (int)($id),
867
+                        $redirect_page.'?'.$plugin->itemName().'='.(int)($id),
868 868
                         2,
869 869
                         XoopsLocale::E_NO_ACCESS_PERMISSION
870 870
                     );
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
                 case 'delete_one':
876 876
                     if (!$comment_handler->delete($comment)) {
877 877
                         $xoops->header();
878
-                        echo $xoops->alert('error', _MD_COMMENTS_COMDELETENG . ' (ID: ' . $comment->getVar('id') . ')');
878
+                        echo $xoops->alert('error', _MD_COMMENTS_COMDELETENG.' (ID: '.$comment->getVar('id').')');
879 879
                         $xoops->footer();
880 880
                     }
881 881
 
@@ -911,8 +911,8 @@  discard block
 block discarded – undo
911 911
                             $new_rootid = $child_comments[$i]->getVar('id');
912 912
                             $child_comments[$i]->setVar('rootid', $child_comments[$i]->getVar('id'));
913 913
                             if (!$comment_handler->insert($child_comments[$i])) {
914
-                                $errs[] = 'Could not change comment parent ID from <strong>' . $id
915
-                                    . '</strong> to <strong>' . $new_pid . '</strong>. (ID: ' . $new_rootid . ')';
914
+                                $errs[] = 'Could not change comment parent ID from <strong>'.$id
915
+                                    . '</strong> to <strong>'.$new_pid.'</strong>. (ID: '.$new_rootid.')';
916 916
                             } else {
917 917
                                 // need to change root id for all its child comments as well
918 918
                                 $c_child_comments = $xot->getAllChild($new_rootid);
@@ -920,15 +920,15 @@  discard block
 block discarded – undo
920 920
                                 foreach (array_keys($c_child_comments) as $j) {
921 921
                                     $c_child_comments[$j]->setVar('rootid', $new_rootid);
922 922
                                     if (!$comment_handler->insert($c_child_comments[$j])) {
923
-                                        $errs[] = 'Could not change comment root ID from <strong>' . $id
924
-                                            . '</strong> to <strong>' . $new_rootid . '</strong>.';
923
+                                        $errs[] = 'Could not change comment root ID from <strong>'.$id
924
+                                            . '</strong> to <strong>'.$new_rootid.'</strong>.';
925 925
                                     }
926 926
                                 }
927 927
                             }
928 928
                         } else {
929 929
                             if (!$comment_handler->insert($child_comments[$i])) {
930
-                                $errs[] = 'Could not change comment parent ID from <strong>' . $id
931
-                                    . '</strong> to <strong>' . $new_pid . '</strong>.';
930
+                                $errs[] = 'Could not change comment parent ID from <strong>'.$id
931
+                                    . '</strong> to <strong>'.$new_pid.'</strong>.';
932 932
                             }
933 933
                         }
934 934
                     }
@@ -938,7 +938,7 @@  discard block
 block discarded – undo
938 938
                         $xoops->footer();
939 939
                         exit();
940 940
                     }
941
-                    $xoops->redirect($redirect_page . '=' . $itemid . '&amp;com_order=' . $order . '&amp;com_mode=' . $mode, 1, _MD_COMMENTS_COMDELETED);
941
+                    $xoops->redirect($redirect_page.'='.$itemid.'&amp;com_order='.$order.'&amp;com_mode='.$mode, 1, _MD_COMMENTS_COMDELETED);
942 942
                     break;
943 943
 
944 944
                 case 'delete_all':
@@ -957,9 +957,9 @@  discard block
 block discarded – undo
957 957
                     $member_handler = $xoops->getHandlerMember();
958 958
                     foreach (array_keys($child_comments) as $i) {
959 959
                         if (!$comment_handler->delete($child_comments[$i])) {
960
-                            $msgs[] = _MD_COMMENTS_COMDELETENG . ' (ID: ' . $child_comments[$i]->getVar('id') . ')';
960
+                            $msgs[] = _MD_COMMENTS_COMDELETENG.' (ID: '.$child_comments[$i]->getVar('id').')';
961 961
                         } else {
962
-                            $msgs[] = _MD_COMMENTS_COMDELETED . ' (ID: ' . $child_comments[$i]->getVar('id') . ')';
962
+                            $msgs[] = _MD_COMMENTS_COMDELETED.' (ID: '.$child_comments[$i]->getVar('id').')';
963 963
                             // store poster ID and deleted post number into array for later use
964 964
                             $poster_id = $child_comments[$i]->getVar('uid');
965 965
                             if ($poster_id > 0) {
@@ -986,8 +986,8 @@  discard block
 block discarded – undo
986 986
 
987 987
                     $xoops->header();
988 988
                     echo $xoops->alert('info', $msgs);
989
-                    echo '<br /><a href="' . $redirect_page . '=' . $itemid . '&amp;com_order=' . $order
990
-                        . '&amp;com_mode=' . $mode . '">' . XoopsLocale::GO_BACK . '</a>';
989
+                    echo '<br /><a href="'.$redirect_page.'='.$itemid.'&amp;com_order='.$order
990
+                        . '&amp;com_mode='.$mode.'">'.XoopsLocale::GO_BACK.'</a>';
991 991
                     $xoops->footer();
992 992
                     break;
993 993
 
@@ -1074,7 +1074,7 @@  discard block
 block discarded – undo
1074 1074
         //Delete all configs
1075 1075
         $criteria = new CriteriaCompo();
1076 1076
         $criteria->add(new Criteria('conf_modid', $module->getVar('mid')));
1077
-        $criteria->add(new Criteria('conf_name', "('" . implode("','", $configNames) . "')", 'IN'));
1077
+        $criteria->add(new Criteria('conf_name', "('".implode("','", $configNames)."')", 'IN'));
1078 1078
         $configs = $config_handler->getConfigs($criteria);
1079 1079
         /* @var $config XoopsConfigItem */
1080 1080
         foreach ($configs as $config) {
Please login to merge, or discard this patch.