__XE_LOADED_CLASS__ 변수는 어디에서도 선언되지 않습니다.

__XE_LOADED_CLASS__ 변수는 여기말고 어디에서도 선언/사용되지 않는데 조건문을 빼는게 어떨까요?
This commit is contained in:
람츠 2015-06-30 12:33:43 +09:00
parent 8a9e08cde3
commit 7ab1cca82c

View file

@ -282,20 +282,18 @@ if(version_compare(PHP_VERSION, '5.3.0') >= 0)
date_default_timezone_set(@date_default_timezone_get());
}
if(!defined('__XE_LOADED_CLASS__'))
{
// Require a function-defined-file for simple use
require(_XE_PATH_ . 'config/func.inc.php');
// Require a function-defined-file for simple use
require(_XE_PATH_ . 'config/func.inc.php');
if(__DEBUG__) {
if(__DEBUG__) {
define('__StartTime__', getMicroTime());
}
}
if(__DEBUG__) {
if(__DEBUG__) {
$GLOBALS['__elapsed_class_load__'] = 0;
}
}
$GLOBALS['__xe_autoload_file_map'] = array_change_key_case(array(
$GLOBALS['__xe_autoload_file_map'] = array_change_key_case(array(
'CacheBase' => 'classes/cache/CacheHandler.class.php',
'CacheHandler' => 'classes/cache/CacheHandler.class.php',
'Context' => 'classes/context/Context.class.php',
@ -388,10 +386,10 @@ if(!defined('__XE_LOADED_CLASS__'))
'HintTableTag' => 'classes/xml/xmlquery/tags/table/HintTableTag.class.php',
'TableTag' => 'classes/xml/xmlquery/tags/table/TableTag.class.php',
'TablesTag' => 'classes/xml/xmlquery/tags/table/TablesTag.class.php',
), CASE_LOWER);
), CASE_LOWER);
function __xe_autoload($class_name)
{
function __xe_autoload($class_name)
{
if(__DEBUG__) {
$time_at = getMicroTime();
}
@ -419,14 +417,11 @@ if(!defined('__XE_LOADED_CLASS__'))
if(__DEBUG__) {
$GLOBALS['__elapsed_class_load__'] += getMicroTime() - $time_at;
}
}
spl_autoload_register('__xe_autoload');
}
spl_autoload_register('__xe_autoload');
if(file_exists(_XE_PATH_ . '/vendor/autoload.php')) {
if(file_exists(_XE_PATH_ . '/vendor/autoload.php')) {
require _XE_PATH_ . '/vendor/autoload.php';
}
}
/* End of file config.inc.php */
/* Location: ./config/config.inc.php */