Code Duplication    Length = 7-7 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 6948-6954 (lines=7) @@
6945
        $arrLP = isset($this->arrMenu) ? $this->arrMenu : null;
6946
        unset($this->arrMenu);
6947
6948
        if ($action == 'add') {
6949
            $legend = get_lang('CreateTheForum');
6950
        } elseif ($action == 'move') {
6951
            $legend = get_lang('MoveTheCurrentForum');
6952
        } else {
6953
            $legend = get_lang('EditCurrentForum');
6954
        }
6955
6956
        $form = new FormValidator('forum_form', 'POST', api_get_self() . '?' .$_SERVER['QUERY_STRING']);
6957
        $defaults = [];
@@ 7151-7157 (lines=7) @@
7148
        $form = new FormValidator('thread_form', 'POST', api_get_self() . '?' .$_SERVER['QUERY_STRING']);
7149
        $defaults = [];
7150
7151
        if ($action == 'add') {
7152
            $legend = get_lang('CreateTheForum');
7153
        } elseif ($action == 'move') {
7154
            $legend = get_lang('MoveTheCurrentForum');
7155
        } else {
7156
            $legend = get_lang('EditCurrentForum');
7157
        }
7158
7159
        $form->addHeader($legend);
7160
        $selectParent = $form->addSelect(