Code Duplication    Length = 7-9 lines in 2 locations

admin/main.php 1 location

@@ 169-175 (lines=7) @@
166
    $sform->addElement($keywords);
167
168
    // Insert tags if Tag-module is installed
169
    if (wfl_tag_module_included()) {
170
        require_once XOOPS_ROOT_PATH . '/modules/tag/include/formtag.php';
171
        $text_tags = new TagFormTag('item_tag', 70, 255, $link_array['item_tag'], 0);
172
        $sform->addElement($text_tags);
173
    } else {
174
        $sform->addElement(new XoopsFormHidden('item_tag', $link_array['item_tag']));
175
    }
176
177
    // Screenshot
178
    $graph_array       = &wflLists:: getListTypeAsArray(XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['screenshots'], $type = 'images');

submit.php 1 location

@@ 307-315 (lines=9) @@
304
        $sform->addElement($keywords);
305
306
        // Insert tags if Tag-module is installed and if user is allowed
307
        if ($xoopsModuleConfig['usercantag']) {
308
            if (wfl_tag_module_included()) {
309
                require_once XOOPS_ROOT_PATH . '/modules/tag/include/formtag.php';
310
                $text_tags = new TagFormTag('item_tag', 70, 255, $link_array['item_tag'], 0);
311
                $sform->addElement($text_tags);
312
            } else {
313
                $sform->addElement(new XoopsFormHidden('item_tag', $link_array['item_tag']));
314
            }
315
        }
316
        if ($xoopsModuleConfig['useaddress']) {
317
            $sform->insertBreak(_MD_WFL_LINK_CREATEADDRESS, 'even');
318
            // Google Maps