Code Duplication    Length = 4-4 lines in 4 locations

viewforum.php 1 location

@@ 324-327 (lines=4) @@
321
    $xoopsTpl->assign('forum_pagenav', '');
322
}
323
324
if (!empty($GLOBALS['xoopsModuleConfig']['show_jump'])) {
325
    include_once __DIR__ . '/include/functions.forum.php';
326
    $xoopsTpl->assign('forum_jumpbox', newbbMakeJumpbox($forum_id));
327
}
328
329
if ($GLOBALS['xoopsModuleConfig']['show_permissiontable']) {
330
    //    /** var Newbb\PermissionHandler $permHandler */

list.topic.php 1 location

@@ 89-92 (lines=4) @@
86
$xoopsTpl->assign('post_link', 'viewpost.php');
87
$xoopsTpl->assign('newpost_link', 'viewpost.php?status=new');
88
89
if (!empty($GLOBALS['xoopsModuleConfig']['show_jump'])) {
90
    include_once __DIR__ . '/include/functions.forum.php';
91
    $xoopsTpl->assign('forum_jumpbox', newbbMakeJumpbox());
92
}
93
$xoopsTpl->assign('menumode', $menumode);
94
$xoopsTpl->assign('menumode_other', $menumode_other);
95

viewpost.php 1 location

@@ 363-366 (lines=4) @@
360
}
361
unset($viewtopic_users, $forums);
362
363
if (!empty($GLOBALS['xoopsModuleConfig']['show_jump'])) {
364
    include_once __DIR__ . '/include/functions.forum.php';
365
    $xoopsTpl->assign('forum_jumpbox', newbbMakeJumpbox($forum_id));
366
}
367
368
if ($postCount > $post_perpage) {
369
    include $GLOBALS['xoops']->path('class/pagenav.php');

viewtopic.php 1 location

@@ 683-686 (lines=4) @@
680
}
681
682
// create jump box
683
if (!empty($GLOBALS['xoopsModuleConfig']['show_jump'])) {
684
    include_once __DIR__ . '/include/functions.forum.php';
685
    $xoopsTpl->assign('forum_jumpbox', newbbMakeJumpbox($forum_id));
686
}
687
688
$xoopsTpl->assign([
689
                      'lang_forum_index' => sprintf(_MD_NEWBB_FORUMINDEX, htmlspecialchars($GLOBALS['xoopsConfig']['sitename'], ENT_QUOTES)),