Code Duplication    Length = 3-5 lines in 2 locations

htdocs/include/notification_functions.php 1 location

@@ 170-172 (lines=3) @@
167
168
    foreach ($not_config['event'] as $event) {
169
        if ($event['category'] == $category_name) {
170
            if (!is_dir($dir = XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/')) {
171
                $dir = XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname') . '/language/english/mail_template/';
172
            }
173
            $event['mail_template_dir'] = $dir;
174
            if (!$enabled_only || notificationEventEnabled($category, $event, $module)) {
175
                $event_array[] = $event;

htdocs/modules/system/help.php 1 location

@@ 195-199 (lines=5) @@
192
    }
193
    $xoopsTpl->assign('list_mods', $listed_mods);
194
195
    if (file_exists(XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/help/help_center.html')) {
196
        $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/help/help_center.html');
197
    } else {
198
        $helpcontent = '<div id="non-modhelp">' . _MD_CPANEL_HELPCENTER . '</div>';
199
    }
200
201
    $xoopsTpl->assign('helpcontent', $helpcontent);
202
}