#64 서버 내 경로를 절대경로로 변경

This commit is contained in:
bnu 2013-11-22 14:57:24 +09:00
parent bf0dd35f0a
commit 932862be1f
42 changed files with 807 additions and 133 deletions

View file

@ -760,7 +760,7 @@ class layoutModel extends layout
$buff = '<?php if(!defined("__XE__")) exit(); '.$buff.' ?>';
FileHandler::writeFile($cache_file, $buff);
if(file_exists($cache_file)) @include($cache_file);
if(FileHandler::exists($cache_file)) include($cache_file);
if(!$layout_info->title)
{
@ -807,7 +807,7 @@ class layoutModel extends layout
*/
function getUserLayoutPath($layout_srl)
{
return sprintf("./files/faceOff/%s",getNumberingPath($layout_srl,3));
return sprintf("%sfiles/faceOff/%s", _XE_PATH_, getNumberingPath($layout_srl,3));
}
/**
@ -942,7 +942,7 @@ class layoutModel extends layout
*/
function getLayoutCache($layout_name,$lang_type)
{
return sprintf("./files/cache/layout/%s.%s.cache.php",$layout_name,$lang_type);
return sprintf("%sfiles/cache/layout/%s.%s.cache.php", _XE_PATH_, $layout_name,$lang_type);
}
/**