Commit 0ca21710 authored by Taylor Otwell's avatar Taylor Otwell

added lang_path constant.

parent c76d0fb6
......@@ -22,6 +22,7 @@ define('BASE_PATH', realpath('../').'/');
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/');
......
......@@ -119,7 +119,7 @@ class Lang {
{
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment