Completed
Branch master (c92e39)
by Michael
02:32
created
admin/faq.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -549,11 +549,11 @@
 block discarded – undo
549 549
             $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0;
550 550
             xoops_cp_header();
551 551
             xoops_confirm(array(
552
-                              'op'      => 'del',
553
-                              'faqid'   => $faqObj->faqid(),
554
-                              'confirm' => 1,
555
-                              'name'    => $faqObj->question()
556
-                          ), 'faq.php', _AM_SF_DELETETHISARTICLE . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE);
552
+                                'op'      => 'del',
553
+                                'faqid'   => $faqObj->faqid(),
554
+                                'confirm' => 1,
555
+                                'name'    => $faqObj->question()
556
+                            ), 'faq.php', _AM_SF_DELETETHISARTICLE . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE);
557 557
             xoops_cp_footer();
558 558
         }
559 559
 
Please login to merge, or discard this patch.
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-require_once __DIR__ . '/admin_header.php';
9
+require_once __DIR__.'/admin_header.php';
10 10
 
11 11
 // Creating the faq handler object
12 12
 $faqHandler = sf_gethandler('faq');
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 }
27 27
 
28 28
 // Where shall we start?
29
-$startfaq = isset($_GET['startfaq']) ? (int)$_GET['startfaq'] : 0;
29
+$startfaq = isset($_GET['startfaq']) ? (int) $_GET['startfaq'] : 0;
30 30
 
31 31
 /**
32 32
  * @param bool $showmenu
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 {
39 39
     global $answerHandler, $faqHandler, $categoryHandler, $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts;
40 40
 
41
-    include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
41
+    include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
42 42
     // If there is a parameter, and the id exists, retrieve data: we're editing a faq
43 43
     if ($faqid != -1) {
44 44
         // Creating the FAQ object
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
 
141 141
         echo "<br>\n";
142 142
         sf_collapsableBar('bottomtable', 'bottomtableicon');
143
-        echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . $collapsableBar_title . '</h3>';
143
+        echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;".$collapsableBar_title.'</h3>';
144 144
         echo "<div id='bottomtable'>";
145
-        echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . $collapsableBar_info . '</span>';
145
+        echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'.$collapsableBar_info.'</span>';
146 146
     } else {
147 147
         // there's no parameter, so we're adding a faq
148 148
         $faqObj = $faqHandler->create();
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         $button_caption     = _AM_SF_CREATE;
157 157
 
158 158
         sf_collapsableBar('bottomtable', 'bottomtableicon');
159
-        echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_CREATESMARTFAQ . '</h3>';
159
+        echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_CREATESMARTFAQ.'</h3>';
160 160
         echo "<div id='bottomtable'>";
161 161
     }
162 162
     $sform = new XoopsThemeForm(_AM_SF_SMARTFAQ, 'op', xoops_getenv('PHP_SELF'));
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
     // ANSWER
189 189
     if ($merge) {
190
-        $theanswer = $originalAnswerObj->answer('e') . "\n\n" . sprintf(_AM_SF_NEW_CONTRIBUTION, sf_getLinkedUnameFromId($answerObj->uid(), $xoopsModuleConfig['userealname']), $answerObj->datesub(),
190
+        $theanswer = $originalAnswerObj->answer('e')."\n\n".sprintf(_AM_SF_NEW_CONTRIBUTION, sf_getLinkedUnameFromId($answerObj->uid(), $xoopsModuleConfig['userealname']), $answerObj->datesub(),
191 191
                                                                         $answerObj->answer('e'));
192 192
     } else {
193 193
         $theanswer = $answerObj->answer('e');
@@ -237,14 +237,14 @@  discard block
 block discarded – undo
237 237
     $sform->addElement(new XoopsFormText(_AM_SF_SPECIFIC_URL, 'contextpage', 50, 60, $faqObj->contextpage()), false);
238 238
 
239 239
     // EXACT URL?
240
-    $excaturl_radio = new XoopsFormRadioYN(_AM_SF_EXACTURL, 'exacturl', $faqObj->exacturl(), ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . '');
240
+    $excaturl_radio = new XoopsFormRadioYN(_AM_SF_EXACTURL, 'exacturl', $faqObj->exacturl(), ' '._AM_SF_YES.'', ' '._AM_SF_NO.'');
241 241
     $sform->addElement($excaturl_radio);
242 242
     // WEIGHT
243 243
     $sform->addElement(new XoopsFormText(_AM_SF_WEIGHT, 'weight', 5, 5, $faqObj->weight()), true);
244 244
 
245 245
     // COMMENTS
246 246
     // Code to allow comments
247
-    $addcomments_radio = new XoopsFormRadioYN(_AM_SF_ALLOWCOMMENTS, 'cancomment', $faqObj->cancomment(), ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . '');
247
+    $addcomments_radio = new XoopsFormRadioYN(_AM_SF_ALLOWCOMMENTS, 'cancomment', $faqObj->cancomment(), ' '._AM_SF_YES.'', ' '._AM_SF_NO.'');
248 248
     $sform->addElement($addcomments_radio);
249 249
 
250 250
     // PER ITEM PERMISSIONS
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
     }
259 259
     $sform->addElement($groups_checkbox);
260 260
 
261
-    $partial_view = new XoopsFormRadioYN(_AM_SF_PARTIALVIEW, 'partialview', $faqObj->partialview(), ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . '');
261
+    $partial_view = new XoopsFormRadioYN(_AM_SF_PARTIALVIEW, 'partialview', $faqObj->partialview(), ' '._AM_SF_YES.'', ' '._AM_SF_NO.'');
262 262
     $sform->addElement($partial_view);
263 263
 
264 264
     // VARIOUS OPTIONS
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
     // OFFLINE
282 282
     if ($faqObj->status() == _SF_STATUS_OFFLINE) {
283 283
         // Back OnLine
284
-        $offline_radio = new XoopsFormRadioYN(_AM_SF_OFFLINE_FIELD, 'offline', 1, ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . '');
284
+        $offline_radio = new XoopsFormRadioYN(_AM_SF_OFFLINE_FIELD, 'offline', 1, ' '._AM_SF_YES.'', ' '._AM_SF_NO.'');
285 285
         $sform->addElement($offline_radio);
286 286
     }
287 287
 
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
         }
356 356
 
357 357
         xoops_cp_header();
358
-        include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
358
+        include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
359 359
 
360 360
         editfaq(true, $faqid, $answerid, true);
361 361
         break;
@@ -372,11 +372,11 @@  discard block
 block discarded – undo
372 372
             }
373 373
         }
374 374
 
375
-        $adminObject  = \Xmf\Module\Admin::getInstance();
375
+        $adminObject = \Xmf\Module\Admin::getInstance();
376 376
         xoops_cp_header();
377 377
 
378 378
         $adminObject->displayNavigation(basename(__FILE__));
379
-        include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
379
+        include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
380 380
 
381 381
         editfaq(true, $faqid, $answerid);
382 382
         break;
@@ -384,9 +384,9 @@  discard block
 block discarded – undo
384 384
     case 'addfaq':
385 385
         global $xoopsUser;
386 386
 
387
-        $faqid         = isset($_POST['faqid']) ? (int)$_POST['faqid'] : -1;
388
-        $requester_uid = isset($_POST['requester_uid']) ? (int)$_POST['requester_uid'] : 0;
389
-        $answerer_uid  = isset($_POST['answerer_uid']) ? (int)$_POST['answerer_uid'] : 0;
387
+        $faqid         = isset($_POST['faqid']) ? (int) $_POST['faqid'] : -1;
388
+        $requester_uid = isset($_POST['requester_uid']) ? (int) $_POST['requester_uid'] : 0;
389
+        $answerer_uid  = isset($_POST['answerer_uid']) ? (int) $_POST['answerer_uid'] : 0;
390 390
 
391 391
         // Creating the FAQ and answer objects
392 392
         if ($faqid != -1) {
@@ -407,23 +407,23 @@  discard block
 block discarded – undo
407 407
         } else {
408 408
             $faqObj->setGroups_read();
409 409
         }
410
-        $faqObj->setVar('categoryid', isset($_POST['categoryid']) ? (int)$_POST['categoryid'] : 0);
410
+        $faqObj->setVar('categoryid', isset($_POST['categoryid']) ? (int) $_POST['categoryid'] : 0);
411 411
         $faqObj->setVar('question', $_POST['question']);
412 412
         $faqObj->setVar('howdoi', $_POST['howdoi']);
413 413
         $faqObj->setVar('diduno', $_POST['diduno']);
414 414
 
415
-        $faqObj->setVar('status', isset($_POST['status']) ? (int)$_POST['status'] : _SF_STATUS_ASKED);
415
+        $faqObj->setVar('status', isset($_POST['status']) ? (int) $_POST['status'] : _SF_STATUS_ASKED);
416 416
 
417 417
         // If this SmartFAQ is offline and the user set this option to No
418 418
         $offline = isset($_POST['offline']) ? $_POST['offline'] : 1;
419 419
         if ((0 == $offline) && ($faqObj->status() == _SF_STATUS_OFFLINE)) {
420 420
             $faqObj->setVar('status', _SF_STATUS_PUBLISHED);
421 421
         }
422
-        $faqObj->setVar('weight', isset($_POST['weight']) ? (int)$_POST['weight'] : $faqObj->weight());
423
-        $faqObj->setVar('html', isset($_POST['html']) ? (int)$_POST['html'] : 0);
424
-        $faqObj->setVar('smiley', isset($_POST['smiley']) ? (int)$_POST['smiley'] : 0);
425
-        $faqObj->setVar('xcodes', isset($_POST['xcodes']) ? (int)$_POST['xcodes'] : 0);
426
-        $faqObj->setVar('cancomment', isset($_POST['cancomment']) ? (int)$_POST['cancomment'] : 0);
422
+        $faqObj->setVar('weight', isset($_POST['weight']) ? (int) $_POST['weight'] : $faqObj->weight());
423
+        $faqObj->setVar('html', isset($_POST['html']) ? (int) $_POST['html'] : 0);
424
+        $faqObj->setVar('smiley', isset($_POST['smiley']) ? (int) $_POST['smiley'] : 0);
425
+        $faqObj->setVar('xcodes', isset($_POST['xcodes']) ? (int) $_POST['xcodes'] : 0);
426
+        $faqObj->setVar('cancomment', isset($_POST['cancomment']) ? (int) $_POST['cancomment'] : 0);
427 427
         $faqObj->setVar('modulelink', $_POST['modulelink']);
428 428
         $faqObj->setVar('contextpage', $_POST['contextpage']);
429 429
         $faqObj->setVar('exacturl', $_POST['exacturl']);
@@ -507,13 +507,13 @@  discard block
 block discarded – undo
507 507
 
508 508
         // Storing the FAQ
509 509
         if (!$faqObj->store()) {
510
-            redirect_header('javascript:history.go(-1)', 3, $error_msg . sf_formatErrors($faqObj->getErrors()));
510
+            redirect_header('javascript:history.go(-1)', 3, $error_msg.sf_formatErrors($faqObj->getErrors()));
511 511
         }
512 512
 
513 513
         // Storing the answer
514 514
         $answerObj->setVar('faqid', $faqObj->faqid());
515 515
         if (!$answerObj->store()) {
516
-            redirect_header('javascript:history.go(-1)', 3, $error_msg . sf_formatErrors($answerObj->getErrors()));
516
+            redirect_header('javascript:history.go(-1)', 3, $error_msg.sf_formatErrors($answerObj->getErrors()));
517 517
         }
518 518
 
519 519
         // Send notifications
@@ -530,8 +530,8 @@  discard block
 block discarded – undo
530 530
         $module_id    = $xoopsModule->getVar('mid');
531 531
         $gpermHandler = xoops_getHandler('groupperm');
532 532
 
533
-        $faqid = isset($_POST['faqid']) ? (int)$_POST['faqid'] : 0;
534
-        $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : $faqid;
533
+        $faqid = isset($_POST['faqid']) ? (int) $_POST['faqid'] : 0;
534
+        $faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : $faqid;
535 535
 
536 536
         $faqObj = new sfFaq($faqid);
537 537
 
@@ -540,20 +540,20 @@  discard block
 block discarded – undo
540 540
 
541 541
         if ($confirm) {
542 542
             if (!$faqHandler->delete($faqObj)) {
543
-                redirect_header('faq.php', 2, _AM_SF_FAQ_DELETE_ERROR . sf_formatErrors($faqObj->getErrors()));
543
+                redirect_header('faq.php', 2, _AM_SF_FAQ_DELETE_ERROR.sf_formatErrors($faqObj->getErrors()));
544 544
             }
545 545
 
546 546
             redirect_header('faq.php', 2, sprintf(_AM_SF_ARTISDELETED, $faqObj->question()));
547 547
         } else {
548 548
             // no confirm: show deletion condition
549
-            $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0;
549
+            $faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0;
550 550
             xoops_cp_header();
551 551
             xoops_confirm(array(
552 552
                               'op'      => 'del',
553 553
                               'faqid'   => $faqObj->faqid(),
554 554
                               'confirm' => 1,
555 555
                               'name'    => $faqObj->question()
556
-                          ), 'faq.php', _AM_SF_DELETETHISARTICLE . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE);
556
+                          ), 'faq.php', _AM_SF_DELETETHISARTICLE." <br>'".$faqObj->question()."'. <br> <br>", _AM_SF_DELETE);
557 557
             xoops_cp_footer();
558 558
         }
559 559
 
@@ -562,15 +562,15 @@  discard block
 block discarded – undo
562 562
 
563 563
     case 'default':
564 564
     default:
565
-        $adminObject  = \Xmf\Module\Admin::getInstance();
565
+        $adminObject = \Xmf\Module\Admin::getInstance();
566 566
         xoops_cp_header();
567 567
 
568 568
         $adminObject->displayNavigation(basename(__FILE__));
569 569
 
570
-        include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
571
-        include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
570
+        include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
571
+        include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
572 572
 
573
-        include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/displayfaqs.php';
573
+        include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/displayfaqs.php';
574 574
 
575 575
         $totalcategories = $categoryHandler->getCategoriesCount(-1);
576 576
         if ($totalcategories > 0) {
@@ -580,4 +580,4 @@  discard block
 block discarded – undo
580 580
         break;
581 581
 }
582 582
 
583
-require_once __DIR__ . '/admin_footer.php';
583
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
blocks/faqs_recent_questions.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 function b_faqs_recent_questions_show($options)
13 13
 {
14
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
14
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
15 15
 
16 16
     $block = array();
17 17
 
@@ -60,44 +60,44 @@  discard block
 block discarded – undo
60 60
  */
61 61
 function b_faqs_recent_questions_edit($options)
62 62
 {
63
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
63
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
64 64
 
65 65
     $form = sf_createCategorySelect($options[0]);
66 66
 
67
-    $form .= '&nbsp;<br>' . _MB_SF_ORDER . "&nbsp;<select name='options[]'>";
67
+    $form .= '&nbsp;<br>'._MB_SF_ORDER."&nbsp;<select name='options[]'>";
68 68
 
69 69
     $form .= "<option value='datesub'";
70 70
     if ($options[1] === 'datesub') {
71 71
         $form .= ' selected';
72 72
     }
73
-    $form .= '>' . _MB_SF_DATE . "</option>\n";
73
+    $form .= '>'._MB_SF_DATE."</option>\n";
74 74
 
75 75
     $form .= "<option value='counter'";
76 76
     if ($options[1] === 'counter') {
77 77
         $form .= ' selected';
78 78
     }
79
-    $form .= '>' . _MB_SF_HITS . "</option>\n";
79
+    $form .= '>'._MB_SF_HITS."</option>\n";
80 80
 
81 81
     $form .= "<option value='weight'";
82 82
     if ($options[1] === 'weight') {
83 83
         $form .= ' selected';
84 84
     }
85
-    $form .= '>' . _MB_SF_WEIGHT . "</option>\n";
85
+    $form .= '>'._MB_SF_WEIGHT."</option>\n";
86 86
 
87 87
     $form .= "</select>\n";
88 88
 
89
-    $form .= '&nbsp;' . _MB_SF_DISP . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . "' />&nbsp;" . _MB_SF_QUESTIONS . '';
90
-    $form .= '&nbsp;<br>' . _MB_SF_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[3] . "' />&nbsp;" . _MB_SF_LENGTH . '';
89
+    $form .= '&nbsp;'._MB_SF_DISP."&nbsp;<input type='text' name='options[]' value='".$options[2]."' />&nbsp;"._MB_SF_QUESTIONS.'';
90
+    $form .= '&nbsp;<br>'._MB_SF_CHARS."&nbsp;<input type='text' name='options[]' value='".$options[3]."' />&nbsp;"._MB_SF_LENGTH.'';
91 91
 
92
-    $form .= '<br>' . _MB_SF_SHOW_DATE . "&nbsp;<input type='radio' id='options[]' name='options[]' value='1'";
92
+    $form .= '<br>'._MB_SF_SHOW_DATE."&nbsp;<input type='radio' id='options[]' name='options[]' value='1'";
93 93
     if ($options[4] == 1) {
94 94
         $form .= ' checked';
95 95
     }
96
-    $form .= ' />&nbsp;' . _YES . "<input type='radio' id='options[]' name='options[]' value='0'";
96
+    $form .= ' />&nbsp;'._YES."<input type='radio' id='options[]' name='options[]' value='0'";
97 97
     if ($options[4] == 0) {
98 98
         $form .= ' checked';
99 99
     }
100
-    $form .= ' />&nbsp;' . _NO . '';
100
+    $form .= ' />&nbsp;'._NO.'';
101 101
 
102 102
     return $form;
103 103
 }
Please login to merge, or discard this patch.
blocks/faqs_context.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 function b_faqs_context_show($options)
13 13
 {
14
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
14
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
15 15
 
16 16
     $block = array();
17 17
 
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
  */
49 49
 function b_faqs_context_edit($options)
50 50
 {
51
-    $form = '' . _MB_SF_DISP . '&nbsp;';
52
-    $form .= "<input type='text' name='options[]' value='" . $options[0] . "' />&nbsp;" . _MB_SF_FAQS . '';
51
+    $form = ''._MB_SF_DISP.'&nbsp;';
52
+    $form .= "<input type='text' name='options[]' value='".$options[0]."' />&nbsp;"._MB_SF_FAQS.'';
53 53
 
54 54
     return $form;
55 55
 }
Please login to merge, or discard this patch.
blocks/faqs_new.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 function b_faqs_new_show($options)
13 13
 {
14
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
14
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
15 15
 
16 16
     $block = array();
17 17
 
@@ -57,44 +57,44 @@  discard block
 block discarded – undo
57 57
 function b_faqs_new_edit($options)
58 58
 {
59 59
     global $xoopsDB, $xoopsModule, $xoopsUser;
60
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
60
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
61 61
 
62 62
     $form = sf_createCategorySelect($options[0]);
63 63
 
64
-    $form .= '&nbsp;<br>' . _MB_SF_ORDER . "&nbsp;<select name='options[]'>";
64
+    $form .= '&nbsp;<br>'._MB_SF_ORDER."&nbsp;<select name='options[]'>";
65 65
 
66 66
     $form .= "<option value='datesub'";
67 67
     if ($options[1] === 'datesub') {
68 68
         $form .= ' selected';
69 69
     }
70
-    $form .= '>' . _MB_SF_DATE . "</option>\n";
70
+    $form .= '>'._MB_SF_DATE."</option>\n";
71 71
 
72 72
     $form .= "<option value='counter'";
73 73
     if ($options[1] === 'counter') {
74 74
         $form .= ' selected';
75 75
     }
76
-    $form .= '>' . _MB_SF_HITS . "</option>\n";
76
+    $form .= '>'._MB_SF_HITS."</option>\n";
77 77
 
78 78
     $form .= "<option value='weight'";
79 79
     if ($options[1] === 'weight') {
80 80
         $form .= ' selected';
81 81
     }
82
-    $form .= '>' . _MB_SF_WEIGHT . "</option>\n";
82
+    $form .= '>'._MB_SF_WEIGHT."</option>\n";
83 83
 
84 84
     $form .= "</select>\n";
85 85
 
86
-    $form .= '&nbsp;' . _MB_SF_DISP . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . "' />&nbsp;" . _MB_SF_FAQS . '';
87
-    $form .= '&nbsp;<br>' . _MB_SF_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[3] . "' />&nbsp;" . _MB_SF_LENGTH . '';
86
+    $form .= '&nbsp;'._MB_SF_DISP."&nbsp;<input type='text' name='options[]' value='".$options[2]."' />&nbsp;"._MB_SF_FAQS.'';
87
+    $form .= '&nbsp;<br>'._MB_SF_CHARS."&nbsp;<input type='text' name='options[]' value='".$options[3]."' />&nbsp;"._MB_SF_LENGTH.'';
88 88
 
89
-    $form .= '<br>' . _MB_SF_SHOW_DATE . "&nbsp;<input type='radio' id='options[]' name='options[]' value='1'";
89
+    $form .= '<br>'._MB_SF_SHOW_DATE."&nbsp;<input type='radio' id='options[]' name='options[]' value='1'";
90 90
     if ($options[4] == 1) {
91 91
         $form .= ' checked';
92 92
     }
93
-    $form .= ' />&nbsp;' . _YES . "<input type='radio' id='options[]' name='options[]' value='0'";
93
+    $form .= ' />&nbsp;'._YES."<input type='radio' id='options[]' name='options[]' value='0'";
94 94
     if ($options[4] == 0) {
95 95
         $form .= ' checked';
96 96
     }
97
-    $form .= ' />&nbsp;' . _NO . '';
97
+    $form .= ' />&nbsp;'._NO.'';
98 98
 
99 99
     return $form;
100 100
 }
Please login to merge, or discard this patch.
blocks/faqs_recent.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 function b_faqs_recent_show($options)
13 13
 {
14
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
14
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
15 15
     $myts = MyTextSanitizer::getInstance();
16 16
 
17 17
     $smartModule       = sf_getModuleInfo();
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         }
53 53
 
54 54
         $memberHandler = xoops_getHandler('member');
55
-        $users         = $memberHandler->getUsers(new Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'), true);
55
+        $users         = $memberHandler->getUsers(new Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'), true);
56 56
         for ($i = 0, $iMax = count($faqsObj); $i < $iMax; ++$i) {
57 57
             $faqs['categoryid']   = $faqsObj[$i]->categoryid();
58 58
             $faqs['question']     = $faqsObj[$i]->question($maxQuestionLength);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $block['lang_poster']   = _MB_SF_ANSWEREDBY;
75 75
         $block['lang_date']     = _MB_SF_DATE;
76 76
         $modulename             = $myts->htmlSpecialChars($smartModule->getVar('name'));
77
-        $block['lang_visitfaq'] = _MB_SF_VISITFAQ . ' ' . $modulename;
77
+        $block['lang_visitfaq'] = _MB_SF_VISITFAQ.' '.$modulename;
78 78
     }
79 79
 
80 80
     return $block;
@@ -86,34 +86,34 @@  discard block
 block discarded – undo
86 86
  */
87 87
 function b_faqs_recent_edit($options)
88 88
 {
89
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
89
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
90 90
 
91 91
     $form = sf_createCategorySelect($options[0]);
92 92
 
93
-    $form .= '&nbsp;<br>' . _MB_SF_ORDER . "&nbsp;<select name='options[]'>";
93
+    $form .= '&nbsp;<br>'._MB_SF_ORDER."&nbsp;<select name='options[]'>";
94 94
 
95 95
     $form .= "<option value='datesub'";
96 96
     if ($options[1] === 'datesub') {
97 97
         $form .= ' selected';
98 98
     }
99
-    $form .= '>' . _MB_SF_DATE . "</option>\n";
99
+    $form .= '>'._MB_SF_DATE."</option>\n";
100 100
 
101 101
     $form .= "<option value='counter'";
102 102
     if ($options[1] === 'counter') {
103 103
         $form .= ' selected';
104 104
     }
105
-    $form .= '>' . _MB_SF_HITS . "</option>\n";
105
+    $form .= '>'._MB_SF_HITS."</option>\n";
106 106
 
107 107
     $form .= "<option value='weight'";
108 108
     if ($options[1] === 'weight') {
109 109
         $form .= ' selected';
110 110
     }
111
-    $form .= '>' . _MB_SF_WEIGHT . "</option>\n";
111
+    $form .= '>'._MB_SF_WEIGHT."</option>\n";
112 112
 
113 113
     $form .= "</select>\n";
114 114
 
115
-    $form .= '&nbsp;' . _MB_SF_DISP . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . "' />&nbsp;" . _MB_SF_FAQS . '';
116
-    $form .= '&nbsp;<br>' . _MB_SF_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[3] . "' />&nbsp;" . _MB_SF_LENGTH . '';
115
+    $form .= '&nbsp;'._MB_SF_DISP."&nbsp;<input type='text' name='options[]' value='".$options[2]."' />&nbsp;"._MB_SF_FAQS.'';
116
+    $form .= '&nbsp;<br>'._MB_SF_CHARS."&nbsp;<input type='text' name='options[]' value='".$options[3]."' />&nbsp;"._MB_SF_LENGTH.'';
117 117
 
118 118
     return $form;
119 119
 }
Please login to merge, or discard this patch.
blocks/faqs_most_viewed.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 function b_faqs_most_viewed_show($options)
13 13
 {
14
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
14
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
15 15
 
16 16
     $block = array();
17 17
     if ($options[0] == 0) {
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
 function b_faqs_most_viewed_edit($options)
49 49
 {
50 50
     global $xoopsDB, $xoopsModule, $xoopsUser;
51
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
51
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
52 52
 
53 53
     $form = sf_createCategorySelect($options[0]);
54 54
 
55
-    $form .= '&nbsp;<br>' . _MB_SF_DISP . "&nbsp;<input type='text' name='options[]' value='" . $options[1] . "' />&nbsp;" . _MB_SF_FAQS . '';
56
-    $form .= '&nbsp;<br>' . _MB_SF_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . "' />&nbsp;" . _MB_SF_LENGTH . '';
55
+    $form .= '&nbsp;<br>'._MB_SF_DISP."&nbsp;<input type='text' name='options[]' value='".$options[1]."' />&nbsp;"._MB_SF_FAQS.'';
56
+    $form .= '&nbsp;<br>'._MB_SF_CHARS."&nbsp;<input type='text' name='options[]' value='".$options[2]."' />&nbsp;"._MB_SF_LENGTH.'';
57 57
 
58 58
     return $form;
59 59
 }
Please login to merge, or discard this patch.
blocks/faqs_random_faq.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
 function b_faqs_random_faq_show()
11 11
 {
12
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
12
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
13 13
 
14 14
     $block = array();
15 15
 
Please login to merge, or discard this patch.
blocks/faqs_random_how.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
 function b_faqs_random_how_show()
11 11
 {
12
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
12
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
13 13
 
14 14
     $block = array();
15 15
 
Please login to merge, or discard this patch.
blocks/faqs_random_diduno.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
 function b_faqs_random_diduno_show()
11 11
 {
12
-    include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
12
+    include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
13 13
 
14 14
     $block = array();
15 15
 
Please login to merge, or discard this patch.