Code Duplication    Length = 5-5 lines in 3 locations

viewforum.php 1 location

@@ 86-90 (lines=5) @@
83
include_once $GLOBALS['xoops']->path('header.php');
84
include_once __DIR__ . '/include/functions.render.php';
85
86
if (!empty($GLOBALS['xoopsModuleConfig']['rss_enable'])) {
87
    $xoopsTpl->assign('xoops_module_header', '
88
    <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 . '" />
89
    ' . @$xoopsTpl->get_template_vars('xoops_module_header'));
90
}
91
$forumDescription = $forumObject->getVar('forum_desc');
92
$xoopsTpl->assign('forumDescription', $forumDescription);
93

viewpost.php 1 location

@@ 205-209 (lines=5) @@
202
    $xoops_pagetitle = $forumObject->getVar('forum_name') . ' - ' . _MD_NEWBB_VIEWALLPOSTS . ' [' . $xoopsModule->getVar('name') . ']';
203
    $xoopsTpl->assign('forum_id', $forumObject->getVar('forum_id'));
204
    // irmtfan new method
205
    if (!empty($GLOBALS['xoopsModuleConfig']['rss_enable'])) {
206
        $xoopsTpl->assign('xoops_module_header', '
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" />

viewtopic.php 1 location

@@ 167-171 (lines=5) @@
164
include_once $GLOBALS['xoops']->path('header.php');
165
//$xoopsTpl->assign('xoops_module_header', $xoops_module_header);
166
// irmtfan new method
167
if (!empty($GLOBALS['xoopsModuleConfig']['rss_enable'])) {
168
    $xoopsTpl->assign('xoops_module_header', '
169
    <link rel="alternate" type="application/rss+xml" title="' . $xoopsModule->getVar('name') . '-' . $forumObject->getVar('forum_name') . '" href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/rss.php?f=' . $forumObject->getVar('forum_id') . '" />
170
    ' . @$xoopsTpl->get_template_vars('xoops_module_header'));
171
}
172
173
if ($GLOBALS['xoopsModuleConfig']['wol_enabled']) {
174
    /** @var Newbb\OnlineHandler $onlineHandler */