added lang_path constant.
This commit is contained in:
parent
c76d0fb669
commit
0ca2171071
|
@ -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/');
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue