Code Duplication    Length = 5-6 lines in 2 locations

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

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