Completed
Push — master ( 48b96e...454ebd )
by Michael
02:08
created
include/comment_functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 function smartfaq_com_update($faq_id, $total_num)
12 12
 {
13 13
     $db  = XoopsDatabaseFactory::getDatabaseConnection();
14
-    $sql = 'UPDATE ' . $db->prefix('smartfaq_faq') . ' SET comments = ' . $total_num . ' WHERE faqid = ' . $faq_id;
14
+    $sql = 'UPDATE '.$db->prefix('smartfaq_faq').' SET comments = '.$total_num.' WHERE faqid = '.$faq_id;
15 15
     $db->query($sql);
16 16
 }
17 17
 
Please login to merge, or discard this patch.
language/english/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
 define('_MD_SF_SPECIFIC_URL_SELECT', 'Specific URL...');
133 133
 define('_MD_SF_SENDSTORY', 'Send this Q&A to a friend');
134 134
 define('_MD_SF_SPECIFIC_URL', 'Specific URL');
135
-define('_MD_SF_SPECIFIC_URL_DSC', "If you have set the 'Contextually link to this module' to <i>" . _MD_SF_SPECIFIC_URL_SELECT . "</i>, please specify the URL.<br>\n<b>Example :</b> modules/newbb");
135
+define('_MD_SF_SPECIFIC_URL_DSC', "If you have set the 'Contextually link to this module' to <i>"._MD_SF_SPECIFIC_URL_SELECT."</i>, please specify the URL.<br>\n<b>Example :</b> modules/newbb");
136 136
 define('_MD_SF_SUB_INTRO', 'please fill this form to send your Q&amp;A. The site administrator will review it and then publish it as soon as possible. Thank you in advance for your contribution.');
137 137
 define('_MD_SF_SUB_SNEWNAME', 'Submit a Q&amp;A');
138 138
 define('_MD_SF_SUB_SMNAME', 'Submit a Q&amp;A');
Please login to merge, or discard this patch.
notification_update.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include __DIR__ . '/../../mainfile.php';
10
-include XOOPS_ROOT_PATH . '/include/notification_update.php';
9
+include __DIR__.'/../../mainfile.php';
10
+include XOOPS_ROOT_PATH.'/include/notification_update.php';
Please login to merge, or discard this patch.
comment_reply.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include __DIR__ . '/../../mainfile.php';
10
-require_once XOOPS_ROOT_PATH . '/include/comment_reply.php';
9
+include __DIR__.'/../../mainfile.php';
10
+require_once XOOPS_ROOT_PATH.'/include/comment_reply.php';
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include __DIR__ . '/../../mainfile.php';
9
+include __DIR__.'/../../mainfile.php';
10 10
 
11
-require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
12
-require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/category.php';
13
-require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/faq.php';
14
-require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/answer.php';
11
+require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
12
+require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/category.php';
13
+require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/faq.php';
14
+require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/answer.php';
15 15
 
16 16
 $myts = MyTextSanitizer::getInstance();
Please login to merge, or discard this patch.
comment_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include __DIR__ . '/../../mainfile.php';
10
-require_once XOOPS_ROOT_PATH . '/include/comment_edit.php';
9
+include __DIR__.'/../../mainfile.php';
10
+require_once XOOPS_ROOT_PATH.'/include/comment_edit.php';
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 //$modversion['icons32']             = '../../Frameworks/moduleclasses/icons/32';
27 27
 $modversion['modicons16']          = 'assets/images/icons/16';
28 28
 $modversion['modicons32']          = 'assets/images/icons/32';
29
-$modversion['release_file']        = XOOPS_URL . '/modules/' . $modversion['dirname'] . '/docs/changelog.txt';
29
+$modversion['release_file']        = XOOPS_URL.'/modules/'.$modversion['dirname'].'/docs/changelog.txt';
30 30
 $modversion['module_website_url']  = 'www.xoops.org';
31 31
 $modversion['module_website_name'] = 'XOOPS';
32 32
 $modversion['min_php']             = '5.5';
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 
97 97
 // Tables created by sql file (without prefix!)
98 98
 $modversion['tables'] = [
99
-    $moduleDirName . '_' . 'categories',
100
-    $moduleDirName . '_' . 'faq',
101
-    $moduleDirName . '_' . 'answers'
99
+    $moduleDirName.'_'.'categories',
100
+    $moduleDirName.'_'.'faq',
101
+    $moduleDirName.'_'.'answers'
102 102
 ];
103 103
 
104 104
 // Search
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $modversion['sub'][2]['url']  = 'request.php?op=add';
151 151
         }
152 152
 
153
-        require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
153
+        require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
154 154
 
155 155
         // Creating the FAQ handler object
156 156
         $faqHandler = sf_gethandler('faq');
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21 21
 //require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
22 22
 
23 23
 //require_once __DIR__ . '/../class/utility.php';
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
 $moduleDirName = basename(dirname(__DIR__));
27 27
 
28 28
 $path = dirname(dirname(dirname(__DIR__)));
29
-require_once $path . '/kernel/module.php';
30
-require_once $path . '/class/xoopstree.php';
31
-require_once $path . '/class/xoopslists.php';
32
-require_once $path . '/class/pagenav.php';
33
-require_once $path . '/class/xoopsformloader.php';
34
-
35
-require_once __DIR__ . '/../include/functions.php';
36
-require_once __DIR__ . '/../class/category.php';
37
-require_once __DIR__ . '/../class/faq.php';
38
-require_once __DIR__ . '/../class/answer.php';
29
+require_once $path.'/kernel/module.php';
30
+require_once $path.'/class/xoopstree.php';
31
+require_once $path.'/class/xoopslists.php';
32
+require_once $path.'/class/pagenav.php';
33
+require_once $path.'/class/xoopsformloader.php';
34
+
35
+require_once __DIR__.'/../include/functions.php';
36
+require_once __DIR__.'/../class/category.php';
37
+require_once __DIR__.'/../class/faq.php';
38
+require_once __DIR__.'/../class/answer.php';
39 39
 //require_once __DIR__ . '/../class/utility.php';
40 40
 //require_once __DIR__ . '/../include/common.php';
41 41
 
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
  */
19 19
 
20 20
 $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32);
21
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
21
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
22 22
 
23 23
 xoops_cp_footer();
Please login to merge, or discard this patch.