Code Duplication    Length = 11-11 lines in 3 locations

entry.php 1 location

@@ 55-65 (lines=11) @@
52
53
$xoopsTpl->assign('multicats', (int)$xoopsModuleConfig['multicats']);
54
// To display the list of categories
55
if ($xoopsModuleConfig['multicats'] == 1) {
56
    $xoopsTpl->assign('block0', LexikonUtility::getCategoryArray());
57
    $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN);
58
    if ($xoopsModuleConfig['useshots'] == 1) {
59
        $xoopsTpl->assign('show_screenshot', true);
60
        $xoopsTpl->assign('logo_maximgwidth', $xoopsModuleConfig['logo_maximgwidth']);
61
        $xoopsTpl->assign('lang_noscreenshot', _MD_LEXIKON_NOSHOTS);
62
    } else {
63
        $xoopsTpl->assign('show_screenshot', false);
64
    }
65
}
66
67
if (!$entryID) {
68
    redirect_header('javascript:history.go(-1)', 2, _MD_LEXIKON_UNKNOWNERROR);

index.php 1 location

@@ 78-88 (lines=11) @@
75
$xoopsTpl->assign('totalother', $howmanyother);
76
77
// To display the tree of categories
78
if ($xoopsModuleConfig['multicats'] == 1) {
79
    $xoopsTpl->assign('block0', LexikonUtility::getCategoryArray());
80
    $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN);
81
    if ($xoopsModuleConfig['useshots'] == 1) {
82
        $xoopsTpl->assign('show_screenshot', true);
83
        $xoopsTpl->assign('logo_maximgwidth', $xoopsModuleConfig['logo_maximgwidth']);
84
        $xoopsTpl->assign('lang_noscreenshot', _MD_LEXIKON_NOSHOTS);
85
    } else {
86
        $xoopsTpl->assign('show_screenshot', false);
87
    }
88
}
89
// To display the recent entries block
90
$block1   = [];
91
$result05 = $xoopsDB->query('SELECT entryID, categoryID, term, datesub FROM '

letter.php 1 location

@@ 52-62 (lines=11) @@
49
$xoopsTpl->assign('totalother', $howmanyother);
50
51
// To display the list of categories
52
if ($xoopsModuleConfig['multicats'] == 1) {
53
    $xoopsTpl->assign('block0', LexikonUtility::getCategoryArray());
54
    $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN);
55
    if (LexikonUtility::getModuleOption('useshots')) {
56
        $xoopsTpl->assign('show_screenshot', true);
57
        $xoopsTpl->assign('logo_maximgwidth', $xoopsModuleConfig['logo_maximgwidth']);
58
        $xoopsTpl->assign('lang_noscreenshot', _MD_LEXIKON_NOSHOTS);
59
    } else {
60
        $xoopsTpl->assign('show_screenshot', false);
61
    }
62
}
63
64
// No initial: we need to see all letters
65
if (!$init) {