|
@@ 126-129 (lines=4) @@
|
| 123 |
|
if ($smartModule = $xoopsModule) { |
| 124 |
|
$smartConfig = $xoopsModuleConfig; |
| 125 |
|
// Add the Submit new faq button |
| 126 |
|
if ($isAdmin || (isset($smartConfig['allowsubmit']) && $smartConfig['allowsubmit'] == 1 && (is_object($xoopsUser) || (isset($smartConfig['anonpost']) && $smartConfig['anonpost'] == 1)))) { |
| 127 |
|
$modversion['sub'][1]['name'] = _MI_SF_SUB_SMNAME1; |
| 128 |
|
$modversion['sub'][1]['url'] = 'submit.php?op=add'; |
| 129 |
|
} |
| 130 |
|
// Add the Request new faq |
| 131 |
|
if ($isAdmin || (isset($smartConfig['allowrequest']) && $smartConfig['allowrequest'] == 1 && (is_object($xoopsUser) || (isset($smartConfig['anonpost']) && $smartConfig['anonpost'] == 1)))) { |
| 132 |
|
$modversion['sub'][2]['name'] = _MI_SF_SUB_SMNAME2; |
|
@@ 131-134 (lines=4) @@
|
| 128 |
|
$modversion['sub'][1]['url'] = 'submit.php?op=add'; |
| 129 |
|
} |
| 130 |
|
// Add the Request new faq |
| 131 |
|
if ($isAdmin || (isset($smartConfig['allowrequest']) && $smartConfig['allowrequest'] == 1 && (is_object($xoopsUser) || (isset($smartConfig['anonpost']) && $smartConfig['anonpost'] == 1)))) { |
| 132 |
|
$modversion['sub'][2]['name'] = _MI_SF_SUB_SMNAME2; |
| 133 |
|
$modversion['sub'][2]['url'] = 'request.php?op=add'; |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
| 137 |
|
|