diff --git a/laravel/lang.php b/laravel/lang.php index cd45bf05..5bf12ff5 100644 --- a/laravel/lang.php +++ b/laravel/lang.php @@ -11,6 +11,13 @@ class Lang { */ protected static $lines = array(); + /** + * The paths containing the language files. + * + * @var array + */ + protected static $paths = array(LANG_PATH); + /** * The key of the language line being retrieved. * @@ -32,13 +39,6 @@ class Lang { */ protected $language; - /** - * The paths containing the language files. - * - * @var array - */ - protected $paths = array(LANG_PATH); - /** * Create a new Lang instance. * @@ -164,7 +164,7 @@ protected function load($file) $language = array(); - foreach ($this->paths as $directory) + foreach (static::$paths as $directory) { if (file_exists($path = $directory.$this->language.'/'.$file.EXT)) { diff --git a/laravel/url.php b/laravel/url.php index 4649fee2..a927551b 100644 --- a/laravel/url.php +++ b/laravel/url.php @@ -59,7 +59,7 @@ public static function to_asset($url, $https = null) { if (is_null($https)) $https = Request::secure(); - return str_replace('index.php/', '', static::to($url, $https)); + return str_replace(Config::$items['application']['index'].'/', '', static::to($url, $https)); } /**