refactoring. adding back pagination.

This commit is contained in:
Taylor Otwell
2011-10-04 21:43:39 -05:00
parent 34452f5f08
commit 52b68c060b
21 changed files with 551 additions and 379 deletions

View File

@@ -77,6 +77,8 @@ class Lang {
{
if (count($paths) == 0) $paths = array(SYS_LANG_PATH, LANG_PATH);
if (is_null($language)) $language = Config::get('application.language');
return new static($key, $replacements, $language, $paths);
}
@@ -147,7 +149,7 @@ class Lang {
*/
protected function load($file)
{
if (isset(static::$lines[$this->language.$file])) return;
if (isset(static::$lines[$this->language.$file])) return true;
$language = array();