Code Duplication    Length = 5-5 lines in 3 locations

index.php 1 location

@@ 62-66 (lines=5) @@
59
include_once __DIR__ . '/include/functions.render.php';
60
/* rss feed */
61
// irmtfan new method
62
if (!empty($GLOBALS['xoopsModuleConfig']['rss_enable'])) {
63
    $xoopsTpl->assign('xoops_module_header', '
64
    <link rel="alternate" type="application/xml+rss" title="' . $xoopsModule->getVar('name') . '" href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/rss.php" />
65
    ' . @$xoopsTpl->get_template_vars('xoops_module_header'));
66
}
67
$xoopsTpl->assign('xoops_pagetitle', $xoops_pagetitle);
68
// irmtfan remove and move to footer.php
69
//$xoopsTpl->assign('xoops_module_header', $xoops_module_header);

list.topic.php 1 location

@@ 21-25 (lines=5) @@
18
// irmtfan include header.php after defining $xoopsOption['template_main']
19
include_once $GLOBALS['xoops']->path('header.php');
20
// irmtfan new method
21
if (!empty($GLOBALS['xoopsModuleConfig']['rss_enable'])) {
22
    $xoopsTpl->assign('xoops_module_header', '
23
    <link rel="alternate" type="application/xml+rss" title="' . $xoopsModule->getVar('name') . '" href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/rss.php" />
24
    ' . @$xoopsTpl->get_template_vars('xoops_module_header'));
25
}
26
//$xoopsTpl->assign('xoops_module_header', $xoops_module_header);
27
28
include_once __DIR__ . '/include/functions.time.php';

viewpost.php 1 location

@@ 209-213 (lines=5) @@
206
            <link rel="alternate" type="application/xml+rss" title="' . $xoopsModule->getVar('name') . '-' . $forumObject->getVar('forum_name') . '" href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/rss.php?f=' . $forum_id . '" />
207
            ' . @$xoopsTpl->get_template_vars('xoops_module_header'));
208
    }
209
} elseif (!empty($GLOBALS['xoopsModuleConfig']['rss_enable'])) {
210
    $xoopsTpl->assign('xoops_module_header', '
211
        <link rel="alternate" type="application/xml+rss" title="' . $xoopsModule->getVar('name') . '" href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/rss.php" />
212
    ' . @$xoopsTpl->get_template_vars('xoops_module_header'));
213
}
214
// irmtfan remove and move to footer.php
215
//$xoopsTpl->assign('xoops_module_header', $xoops_module_header);
216
$xoopsTpl->assign('xoops_pagetitle', $xoops_pagetitle);