mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Optimizer의 실행 유무를 관리자 페이지에서 지정할 수 있도록 코드 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2703 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6336292f2e
commit
6e3ae53763
9 changed files with 35 additions and 7 deletions
|
|
@ -26,6 +26,11 @@
|
|||
* @brief optimize 대상 파일을 받아서 처리 후 optimize 된 파일이름을 return
|
||||
**/
|
||||
function getOptimizedFiles($source_files, $type = "js") {
|
||||
// 관리자 설정시 설정이 되어 있지 않으면 패스
|
||||
$db_info = Context::getDBInfo();
|
||||
if($db_info->use_optimizer == 'N') return $source_files;
|
||||
|
||||
// 캐시 디렉토리가 없으면 실행하지 않음
|
||||
if(!is_dir($this->cache_path)) return $source_files;
|
||||
|
||||
$file_count = count($source_files);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue