Code Duplication    Length = 5-5 lines in 3 locations

index.php 1 location

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

list.topic.php 1 location

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

viewpost.php 1 location

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