mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
윈도우 서버에서 js/css파일의 경로에 역슬래쉬가 들어가게 되어 이를 슬래쉬로 일괄 변경하는 코드 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2782 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a67cf9bd5c
commit
756066a09c
1 changed files with 5 additions and 0 deletions
|
|
@ -26,6 +26,11 @@
|
|||
* @brief optimize 대상 파일을 받아서 처리 후 optimize 된 파일이름을 return
|
||||
**/
|
||||
function getOptimizedFiles($source_files, $type = "js") {
|
||||
if(!is_array($source_files) || !count($source_files)) return;
|
||||
|
||||
// $source_files의 역슬래쉬 경로를 슬래쉬로 변경 (윈도우즈 대비)
|
||||
foreach($source_files as $key => $file) $source_files[$key] = str_replace("\\","/",$file);
|
||||
|
||||
// 관리자 설정시 설정이 되어 있지 않으면 패스
|
||||
$db_info = Context::getDBInfo();
|
||||
if($db_info->use_optimizer == 'N') return $source_files;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue