Skip to content
Permalink
Browse files

Correct validation.

  • Loading branch information...
dereuromark committed Jun 26, 2015
1 parent f98883b commit 61e706640b4215b09198d3247be7d060793921f2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Shell/I18nShell.php
@@ -78,8 +78,8 @@ public function init($language = null)
if (!$language) {
$language = strtolower($this->in('What language? Please use the two-letter ISO code, e.g. `en`.'));
}
if (strlen($language) !== 2) {
return $this->error('Must be a two-letter ISO code');
if (strlen($language) < 2) {
return $this->error('Invalid language code. Valid is `en`, `eng`, `en_US` etc.');
}
$this->_paths = [APP];

0 comments on commit 61e7066

Please sign in to comment.
You can’t perform that action at this time.