|
@@ 134-137 (lines=4) @@
|
| 131 |
|
if ($smartModule = $xoopsModule) { |
| 132 |
|
$smartConfig = $xoopsModuleConfig; |
| 133 |
|
// Add the Submit new faq button |
| 134 |
|
if ($isAdmin |
| 135 |
|
|| (isset($smartConfig['allowsubmit']) && $smartConfig['allowsubmit'] == 1 |
| 136 |
|
&& (is_object($xoopsUser) |
| 137 |
|
|| (isset($smartConfig['anonpost']) |
| 138 |
|
&& $smartConfig['anonpost'] == 1))) |
| 139 |
|
) { |
| 140 |
|
$modversion['sub'][1]['name'] = _MI_SF_SUB_SMNAME1; |
|
@@ 144-147 (lines=4) @@
|
| 141 |
|
$modversion['sub'][1]['url'] = 'submit.php?op=add'; |
| 142 |
|
} |
| 143 |
|
// Add the Request new faq |
| 144 |
|
if ($isAdmin |
| 145 |
|
|| (isset($smartConfig['allowrequest']) && $smartConfig['allowrequest'] == 1 |
| 146 |
|
&& (is_object($xoopsUser) |
| 147 |
|
|| (isset($smartConfig['anonpost']) |
| 148 |
|
&& $smartConfig['anonpost'] == 1))) |
| 149 |
|
) { |
| 150 |
|
$modversion['sub'][2]['name'] = _MI_SF_SUB_SMNAME2; |