Code Duplication    Length = 8-8 lines in 2 locations

admin/categories.php 1 location

@@ 88-95 (lines=8) @@
85
86
        break;
87
88
    case 'new':
89
        $adminObject->addItemButton(_AM_PRESENTER_CATEGORIES_LIST, 'categories.php', 'list');
90
        $adminObject->displayButton('left');
91
92
        $obj  = $categoriesHandler->create();
93
        $form = $obj->getForm();
94
        $form->display();
95
        break;
96
97
    case 'save':
98
        if (!$GLOBALS['xoopsSecurity']->check()) {

admin/slides.php 1 location

@@ 151-158 (lines=8) @@
148
149
        break;
150
151
    case 'new':
152
        $adminObject->addItemButton(_AM_PRESENTER_SLIDES_LIST, 'slides.php', 'list');
153
        $adminObject->displayButton('left');
154
155
        $obj  = $slidesHandler->create();
156
        $form = $obj->getForm();
157
        $form->display();
158
        break;
159
160
    case 'save':
161
        if (!$GLOBALS['xoopsSecurity']->check()) {