From 2212b2893d1ee9399b1ec3b8696bb3e2b3b88f02 Mon Sep 17 00:00:00 2001 From: zero Date: Sat, 30 Jun 2007 02:46:50 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@1843 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/context/Context.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index ab73ade3b..56f715dd5 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -101,7 +101,7 @@ ////////////////// // rewrite 모듈사용 상태 체크 - if(file_exists('./.htaccess')&&in_array('mod_rewrite',apache_get_modules())) $this->allow_rewrite = true; + if(file_exists('./.htaccess')&&(function_exists('apache_get_modules')&&in_array('mod_rewrite',apache_get_modules()))) $this->allow_rewrite = true; // 상대 경로 설정 $this->path = $this->getRequestUri(); @@ -240,6 +240,7 @@ $filename = sprintf('%s%s.lang.php', $path, $this->lang_type); if(!file_exists($filename)) $filename = sprintf('%slang/%s.lang.php', $path, $this->lang_type); if(!file_exists($filename)) return; + if(!is_array($this->loaded_lang_files)) $this->loaded_lang_files = array(); if(in_array($filename, $this->loaded_lang_files)) return; $this->loaded_lang_files[] = $filename; @include($filename); @@ -257,7 +258,7 @@ * @brief lang_type을 세팅 (기본 ko) **/ function _setLangType($lang_type = 'ko') { - $this->lang_type = $lang_type; + $this->lang_type = $lang_type; } /**