Code Duplication    Length = 7-9 lines in 2 locations

htdocs/modules/wflinks/admin/main.php 1 location

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

htdocs/modules/wflinks/submit.php 1 location

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