#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

@ -93,7 +93,7 @@ class ModuleHandler extends Handler
$called_position = 'before_module_init';
$oAddonController = getController('addon');
$addon_file = $oAddonController->getCacheFilePath(Mobile::isFromMobilePhone() ? 'mobile' : 'pc');
@include($addon_file);
if(file_exists($addon_file)) include($addon_file);
}
/**
@ -878,9 +878,9 @@ class ModuleHandler extends Handler
$oMenuAdminController = getAdminController('menu');
$homeMenuCacheFile = $oMenuAdminController->getHomeMenuCacheFile();
if(file_exists($homeMenuCacheFile))
if(FileHandler::exists($homeMenuCacheFile))
{
@include($homeMenuCacheFile);
include($homeMenuCacheFile);
}
if(!$menu->menu_srl)
@ -895,9 +895,11 @@ class ModuleHandler extends Handler
$menu->php_file = str_replace($menu->menu_srl, $homeMenuSrl, $menu->php_file);
}
}
if(file_exists($menu->php_file))
$php_file = FileHandler::exists($menu->php_file);
if($php_file)
{
@include($menu->php_file);
include($php_file);
}
Context::set($menu_id, $menu);
}