Skip to content

Commit

Permalink
Fixed loading languages
Browse files Browse the repository at this point in the history
  • Loading branch information
VeeeneX committed Jul 6, 2015
1 parent 413e6d6 commit 6c0911e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/il8n.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Aurora;

use Aurora\Config\AdapterInterface;
use Aurora\AdapterInterface;
use Aurora\Helper\StatefulTrait;

class il8n
Expand All @@ -27,8 +27,8 @@ public function __construct(

public function setLocale($language)
{
if (file_exists($this->Adapter->basePath."/".$this->language."/")) {
$this->useLanguage = $this->language;
if (file_exists($this->Adapter->basePath."/".$language."/")) {
$this->useLanguage = $language;
} else if (file_exists($this->Adapter->basePath."/".$this->fallbackLanguage."/")) {
$this->useLanguage = $this->fallbackLanguage;
} else {
Expand Down

0 comments on commit 6c0911e

Please sign in to comment.