added lang_path constant.
This commit is contained in:
@@ -22,6 +22,7 @@ define('BASE_PATH', realpath('../').'/');
|
|||||||
define('CACHE_PATH', APP_PATH.'storage/cache/');
|
define('CACHE_PATH', APP_PATH.'storage/cache/');
|
||||||
define('CONFIG_PATH', APP_PATH.'config/');
|
define('CONFIG_PATH', APP_PATH.'config/');
|
||||||
define('DATABASE_PATH', APP_PATH.'storage/db/');
|
define('DATABASE_PATH', APP_PATH.'storage/db/');
|
||||||
|
define('LANG_PATH', APP_PATH.'lang/');
|
||||||
define('LIBRARY_PATH', APP_PATH.'libraries/');
|
define('LIBRARY_PATH', APP_PATH.'libraries/');
|
||||||
define('MODEL_PATH', APP_PATH.'models/');
|
define('MODEL_PATH', APP_PATH.'models/');
|
||||||
define('PACKAGE_PATH', APP_PATH.'packages/');
|
define('PACKAGE_PATH', APP_PATH.'packages/');
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ class Lang {
|
|||||||
{
|
{
|
||||||
if (array_key_exists($language.$file, static::$lines)) return;
|
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;
|
static::$lines[$language.$file] = require $path;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user