From 0ca2171071c312378c086b32d9a8ad9d73a580bc Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 26 Jul 2011 23:26:04 -0500 Subject: [PATCH] added lang_path constant. --- public/index.php | 1 + system/lang.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index e92b43fa..d7cf0932 100644 --- a/public/index.php +++ b/public/index.php @@ -22,6 +22,7 @@ define('CACHE_PATH', APP_PATH.'storage/cache/'); define('CONFIG_PATH', APP_PATH.'config/'); define('DATABASE_PATH', APP_PATH.'storage/db/'); +define('LANG_PATH', APP_PATH.'lang/'); define('LIBRARY_PATH', APP_PATH.'libraries/'); define('MODEL_PATH', APP_PATH.'models/'); define('PACKAGE_PATH', APP_PATH.'packages/'); diff --git a/system/lang.php b/system/lang.php index c02f11a6..7a0b177e 100644 --- a/system/lang.php +++ b/system/lang.php @@ -119,7 +119,7 @@ private function load($file, $language) { if (array_key_exists($language.$file, static::$lines)) return; - if (file_exists($path = APP_PATH.'lang/'.$language.'/'.$file.EXT)) + if (file_exists($path = LANG_PATH.$language.'/'.$file.EXT)) { static::$lines[$language.$file] = require $path; }