Code Duplication    Length = 6-6 lines in 2 locations

xoops_trust_path/libs/altsys/class/MyBlocksAdmin.class.php 1 location

@@ 797-802 (lines=6) @@
794
            // new custom block
795
796
//HACK by domifara
797
    if (defined('XOOPS_CUBE_LEGACY')) {
798
        $handler = xoops_gethandler('block');
799
        $new_block =& $handler->create(false) ;
800
    } else {
801
        $new_block = new XoopsBlock() ;
802
    }
803
804
            $new_block->setNew() ;
805
            $new_block->setVar('name', $this->get_blockname_from_ctype('C')) ;

xoops_trust_path/libs/altsys/include/admin_in_theme_header.inc.php 1 location

@@ 59-64 (lines=6) @@
56
    // get all blocks and assign to smarty
57
58
//HACK by domifara
59
    if (defined('XOOPS_CUBE_LEGACY')) {
60
        $handler = xoops_gethandler('block');
61
        $xoopsblock =& $handler->create(false) ;
62
    } else {
63
        $xoopsblock = new XoopsBlock();
64
    }
65
66
    $block_arr = array();
67