Code Duplication    Length = 5-6 lines in 2 locations

main/install/install.lib.php 1 location

@@ 972-977 (lines=6) @@
969
    }
970
971
    $oldConf = '';
972
    if (file_exists(api_get_path(SYS_CODE_PATH).'inc/conf/configuration.php')) {
973
        $oldConf = '<tr>
974
            <td class="requirements-item">'.api_get_path(SYS_CODE_PATH).'inc/conf</td>
975
            <td class="requirements-value">'.check_writable(api_get_path(SYS_CODE_PATH).'inc/conf').'</td>
976
        </tr>';
977
    }
978
979
    echo '<table class="table">
980
            '.$oldConf.'

main/inc/lib/pdf.lib.php 1 location

@@ 533-537 (lines=5) @@
530
            if (file_exists($store_path)) {
531
                $web_path = api_get_path(WEB_COURSE_PATH).$course_info['path'].'/'.api_get_current_access_url_id().'_pdf_watermark.png';
532
            }
533
        } else {
534
            $store_path = api_get_path(SYS_CODE_PATH).'default_course_document/images/'.api_get_current_access_url_id().'_pdf_watermark.png'; // course path
535
            if (file_exists($store_path))
536
                $web_path = api_get_path(WEB_CODE_PATH).'default_course_document/images/'.api_get_current_access_url_id().'_pdf_watermark.png';
537
        }
538
        return $web_path;
539
    }
540