various refactoring and tweaks.

This commit is contained in:
Taylor Otwell
2011-10-20 21:44:18 -05:00
parent df9130dafa
commit af36cb3d5a
22 changed files with 140 additions and 110 deletions

View File

@@ -37,7 +37,7 @@ class Lang {
*
* @var array
*/
protected $paths = array(SYS_LANG_PATH, LANG_PATH);
protected $paths = array(LANG_PATH);
/**
* Create a new Lang instance.
@@ -164,9 +164,6 @@ class Lang {
$language = array();
// Language files cascade. Typically, the system language array is
// loaded first, followed by the application array. This allows the
// convenient overriding of the system language files.
foreach ($this->paths as $directory)
{
if (file_exists($path = $directory.$this->language.'/'.$file.EXT))