Completed
Push — master ( a7fe76...1b2f30 )
by Michael
04:20
created
include/displayfaqs.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 
24 24
 sf_collapsableBar('toptable', 'toptableicon');
25 25
 
26
-echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . $faqs_title . '</h3>';
26
+echo "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;".$faqs_title.'</h3>';
27 27
 echo "<div id='toptable'>";
28
-echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . $faqs_info . '</span>';
28
+echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">".$faqs_info.'</span>';
29 29
 
30 30
 // Get the total number of published FAQs
31 31
 $totalfaqs = $faqHandler->getFaqsCount($sel_cat, array(_SF_STATUS_PUBLISHED, _SF_STATUS_NEW_ANSWER));
@@ -36,22 +36,22 @@  discard block
 block discarded – undo
36 36
 $allcats         = $categoryHandler->getObjects(null, true);
37 37
 echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
38 38
 echo '<tr>';
39
-echo "<th width='40' class='bg3' align='center'><b>" . _AM_SF_ARTID . '</b></td>';
40
-echo "<th width='20%' class='bg3' align='left'><b>" . _AM_SF_ARTCOLNAME . '</b></td>';
41
-echo "<th class='bg3' align='left'><b>" . _AM_SF_QUESTION . '</b></td>';
39
+echo "<th width='40' class='bg3' align='center'><b>"._AM_SF_ARTID.'</b></td>';
40
+echo "<th width='20%' class='bg3' align='left'><b>"._AM_SF_ARTCOLNAME.'</b></td>';
41
+echo "<th class='bg3' align='left'><b>"._AM_SF_QUESTION.'</b></td>';
42 42
 
43
-echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ASKED . '</b></td>';
44
-echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ANSWERED . '</b></td>';
43
+echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ASKED.'</b></td>';
44
+echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ANSWERED.'</b></td>';
45 45
 
46
-echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_CREATED . '</b></td>';
47
-echo "<th width='60' class='bg3' align='center'><b>" . _AM_SF_ACTION . '</b></td>';
46
+echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_CREATED.'</b></td>';
47
+echo "<th width='60' class='bg3' align='center'><b>"._AM_SF_ACTION.'</b></td>';
48 48
 echo '</tr>';
49 49
 if ($totalfaqs > 0) {
50 50
     global $pathIcon16, $smartModuleConfig;
51 51
     for ($i = 0; $i < $totalFaqsOnPage; ++$i) {
52
-        $categoryObj =& $allcats[$faqsObj[$i]->categoryid()];
53
-        $modify      = "<a href='faq.php?op=mod&amp;faqid=" . $faqsObj[$i]->faqid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_EDITART . "' alt='" . _AM_SF_EDITART . "' /></a>";
54
-        $delete      = "<a href='faq.php?op=del&amp;faqid=" . $faqsObj[$i]->faqid() . "'><img src='" . $pathIcon16 . '/delete.png' . "' title='" . _AM_SF_EDITART . "' alt='" . _AM_SF_DELETEART . "'/></a>";
52
+        $categoryObj = & $allcats[$faqsObj[$i]->categoryid()];
53
+        $modify      = "<a href='faq.php?op=mod&amp;faqid=".$faqsObj[$i]->faqid()."'><img src='".$pathIcon16.'/edit.png'."' title='"._AM_SF_EDITART."' alt='"._AM_SF_EDITART."' /></a>";
54
+        $delete      = "<a href='faq.php?op=del&amp;faqid=".$faqsObj[$i]->faqid()."'><img src='".$pathIcon16.'/delete.png'."' title='"._AM_SF_EDITART."' alt='"._AM_SF_DELETEART."'/></a>";
55 55
 
56 56
         //adding name of the Question Submitter
57 57
         $requester = sf_getLinkedUnameFromId($faqsObj[$i]->uid(), $smartModuleConfig['userealname']);
@@ -79,26 +79,26 @@  discard block
 block discarded – undo
79 79
         }
80 80
 
81 81
         echo '<tr>';
82
-        echo "<td class='head' align='center'>" . $faqsObj[$i]->faqid() . '</td>';
83
-        echo "<td class='even' align='left'>" . $categoryObj->name() . '</td>';
84
-        echo "<td class='even' align='left'><a href='" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/faq.php?faqid=' . $faqsObj[$i]->faqid() . "'>" . $faqsObj[$i]->question(100) . '</a></td>';
82
+        echo "<td class='head' align='center'>".$faqsObj[$i]->faqid().'</td>';
83
+        echo "<td class='even' align='left'>".$categoryObj->name().'</td>';
84
+        echo "<td class='even' align='left'><a href='".XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/faq.php?faqid='.$faqsObj[$i]->faqid()."'>".$faqsObj[$i]->question(100).'</a></td>';
85 85
 
86
-        echo "<td class='even' align='center'>" . $requester . '</td>';
87
-        echo "<td class='even' align='center'>" . $answerSubmitter . '</td>';
86
+        echo "<td class='even' align='center'>".$requester.'</td>';
87
+        echo "<td class='even' align='center'>".$answerSubmitter.'</td>';
88 88
 
89
-        echo "<td class='even' align='center'>" . $faqsObj[$i]->datesub('s') . '</td>';
89
+        echo "<td class='even' align='center'>".$faqsObj[$i]->datesub('s').'</td>';
90 90
         echo "<td class='even' align='center'> $modify $delete </td>";
91 91
         echo '</tr>';
92 92
     }
93 93
 } else {
94 94
     $faqid = -1;
95 95
     echo '<tr>';
96
-    echo "<td class='head' align='center' colspan= '7'>" . _AM_SF_NOFAQS . '</td>';
96
+    echo "<td class='head' align='center' colspan= '7'>"._AM_SF_NOFAQS.'</td>';
97 97
     echo '</tr>';
98 98
 }
99 99
 echo "</table>\n";
100 100
 echo "<br />\n";
101 101
 
102 102
 $pagenav = new XoopsPageNav($totalfaqs, $xoopsModuleConfig['perpage'], $startfaq, 'startfaq', $pagenav_extra_args);
103
-echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
103
+echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>';
104 104
 echo '</div>';
Please login to merge, or discard this patch.
answer.php 1 patch
Spacing   +13 added lines, -13 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
-include_once __DIR__ . '/header.php';
9
+include_once __DIR__.'/header.php';
10 10
 
11 11
 global $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule;
12 12
 
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 }
27 27
 
28 28
 // Getting the faqid
29
-$faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0;
30
-$faqid = isset($_POST['faqid']) ? (int)$_POST['faqid'] : $faqid;
29
+$faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0;
30
+$faqid = isset($_POST['faqid']) ? (int) $_POST['faqid'] : $faqid;
31 31
 
32 32
 // If no FAQ is selected, exit
33 33
 if ($faqid == 0) {
@@ -127,12 +127,12 @@  discard block
 block discarded – undo
127 127
 
128 128
         // Storing the FAQ object in the database
129 129
         if (!$faqObj->store()) {
130
-            redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR . sf_formatErrors($faqObj->getErrors()));
130
+            redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR.sf_formatErrors($faqObj->getErrors()));
131 131
         }
132 132
 
133 133
         // Storing the answer object in the database
134 134
         if (!$newAnswerObj->store()) {
135
-            redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR . sf_formatErrors($newAnswerObj->getErrors()));
135
+            redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR.sf_formatErrors($newAnswerObj->getErrors()));
136 136
         }
137 137
 
138 138
         $notificationHandler = xoops_getHandler('notification');
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             case 2:
149 149
                 // Answer for an open question submitted, auto-approved; became Q&A, need approbation
150 150
                 if (isset($_POST['notifypub']) && $_POST['notifypub'] == 1) {
151
-                    include_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
151
+                    include_once XOOPS_ROOT_PATH.'/include/notification_constants.php';
152 152
                     $notificationHandler->subscribe('faq', $faqObj->faqid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
153 153
                 }
154 154
                 // Send notifications
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             case 3:
159 159
                 // Answer submitted, needs approbation
160 160
                 if (isset($_POST['notifypub']) && $_POST['notifypub'] == 1) {
161
-                    include_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
161
+                    include_once XOOPS_ROOT_PATH.'/include/notification_constants.php';
162 162
                     $notificationHandler->subscribe('question', $newAnswerObj->answerid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
163 163
                 }
164 164
                 // Send notifications
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                 // New answer submitted for a published Q&A, need approbation
174 174
                 // Send notifications
175 175
                 if (isset($_POST['notifypub']) && $_POST['notifypub'] == 1) {
176
-                    include_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
176
+                    include_once XOOPS_ROOT_PATH.'/include/notification_constants.php';
177 177
                     $notificationHandler->subscribe('faq', $newAnswerObj->answerid(), 'answer_approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
178 178
                 }
179 179
 
@@ -210,20 +210,20 @@  discard block
 block discarded – undo
210 210
         }
211 211
 
212 212
         $xoopsOption['template_main'] = 'smartfaq_submit.tpl';
213
-        include_once(XOOPS_ROOT_PATH . '/header.php');
214
-        include_once __DIR__ . '/footer.php';
213
+        include_once(XOOPS_ROOT_PATH.'/header.php');
214
+        include_once __DIR__.'/footer.php';
215 215
 
216 216
         $name = $xoopsUser ? ucwords($xoopsUser->getVar('uname')) : 'Anonymous';
217 217
 
218
-        $moduleName =& $myts->displayTarea($xoopsModule->getVar('name'));
218
+        $moduleName = & $myts->displayTarea($xoopsModule->getVar('name'));
219 219
         $xoopsTpl->assign('whereInSection', $moduleName);
220 220
         $xoopsTpl->assign('lang_submit', _MD_SF_SUBMITANSWER);
221 221
 
222 222
         $xoopsTpl->assign('lang_intro_title', sprintf(_MD_SF_SUBMITANSWERTO, ucwords($xoopsModule->name())));
223
-        $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY . "<b>$name</b>, " . _MD_SF_SUBMITANSWER_INTRO);
223
+        $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY."<b>$name</b>, "._MD_SF_SUBMITANSWER_INTRO);
224 224
 
225 225
         include_once 'include/answer.inc.php';
226 226
 
227
-        include_once XOOPS_ROOT_PATH . '/footer.php';
227
+        include_once XOOPS_ROOT_PATH.'/footer.php';
228 228
         break;
229 229
 }
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_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_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='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='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='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='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='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_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.
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_recent.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_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);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             $faqs['categoryname'] = $allcategories[$faqsObj[$i]->categoryid()]->getVar('name');
61 61
 
62 62
             // Creating the answer object
63
-            $answerObj =& $allanswers[$faqsObj[$i]->faqid()];
63
+            $answerObj = & $allanswers[$faqsObj[$i]->faqid()];
64 64
 
65 65
             $faqs['date'] = $faqsObj[$i]->datesub();
66 66
 
@@ -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='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='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='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.