Code Duplication    Length = 5-6 lines in 2 locations

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

@@ 703-708 (lines=6) @@
700
701
        $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'base.css');
702
703
        if ($this->show_learnpath) {
704
            $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'scorm.css');
705
            if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/learnpath.css')) {
706
                $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/learnpath.css';
707
            }
708
        }
709
710
        if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
711
            $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
@@ 710-714 (lines=5) @@
707
            }
708
        }
709
710
        if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
711
            $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
712
        }else{
713
            $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'editor.css');
714
        }
715
716
        $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/default.css');
717