@@ -11,7 +11,7 @@ |
||
| 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 | |
@@ -132,7 +132,7 @@ |
||
| 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&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&A'); |
| 138 | 138 | define('_MD_SF_SUB_SMNAME', 'Submit a Q&A'); |
@@ -6,5 +6,5 @@ |
||
| 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'; |
|
@@ -6,5 +6,5 @@ |
||
| 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'; |
|
@@ -6,11 +6,11 @@ |
||
| 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(); |
@@ -6,5 +6,5 @@ |
||
| 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'; |
|
@@ -26,7 +26,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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'); |
@@ -17,7 +17,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -18,6 +18,6 @@ |
||
| 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(); |