@@ 517-520 (lines=4) @@ | ||
514 | if ($isAdmin || $this->checkIdentity()) { |
|
515 | $post_text = $this->getVar('post_text'); |
|
516 | $post_attachment = $this->displayAttachment(); |
|
517 | } elseif ($GLOBALS['xoopsModuleConfig']['enable_karma'] && $this->getVar('post_karma') > $user_karma) { |
|
518 | $post_text = "<div class='karma'>" . sprintf(_MD_NEWBB_KARMA_REQUIREMENT, $user_karma, $this->getVar('post_karma')) . '</div>'; |
|
519 | $post_attachment = ''; |
|
520 | } elseif ($GLOBALS['xoopsModuleConfig']['allow_require_reply'] && $this->getVar('require_reply') |
|
521 | && (!$uid || !in_array($uid, $viewtopic_posters))) { |
|
522 | $post_text = "<div class='karma'>" . _MD_NEWBB_REPLY_REQUIREMENT . '</div>'; |
|
523 | $post_attachment = ''; |
@@ 278-281 (lines=4) @@ | ||
275 | if ($isAdmin || $post->checkIdentity()) { |
|
276 | $post_text = $post->getVar('post_text'); |
|
277 | $post_attachment = $post->displayAttachment(); |
|
278 | } elseif ($GLOBALS['xoopsModuleConfig']['enable_karma'] && $post->getVar('post_karma') > $user_karma) { |
|
279 | $post_text = "<div class='karma'>" . sprintf(_MD_NEWBB_KARMA_REQUIREMENT, $user_karma, $post->getVar('post_karma')) . '</div>'; |
|
280 | $post_attachment = ''; |
|
281 | } elseif ($GLOBALS['xoopsModuleConfig']['allow_require_reply'] && $post->getVar('require_reply')) { |
|
282 | $post_text = "<div class='karma'>" . _MD_NEWBB_REPLY_REQUIREMENT . '</div>'; |
|
283 | $post_attachment = ''; |
|
284 | } else { |