Code Duplication    Length = 5-6 lines in 2 locations

main/inc/lib/template.lib.php 2 locations

@@ 685-690 (lines=6) @@
682
683
        $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'base.css');
684
685
        if ($this->show_learnpath) {
686
            $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'scorm.css');
687
            if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/learnpath.css')) {
688
                $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/learnpath.css';
689
            }
690
        }
691
692
        if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
693
            $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
@@ 692-696 (lines=5) @@
689
            }
690
        }
691
692
        if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
693
            $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
694
        }else{
695
            $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'editor.css');
696
        }
697
698
        $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/default.css');
699