Display an error if php-intl is not installed (fixes #120)
This commit is contained in:
parent
b0c4963ac8
commit
3e13be702e
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ if ($config->uglyUrls) {
|
|||
$container['router'] = new UglyRouter();
|
||||
}
|
||||
$container['view'] = ViewFactory::create($container);
|
||||
|
||||
if (!class_exists('Locale')) {
|
||||
die('You need to install the intl extension for PHP.');
|
||||
}
|
||||
$container['locale'] = new LocaleManager($_COOKIE);
|
||||
$app->add(new LocaleMiddleware($container));
|
||||
|
||||
|
|
Loading…
Reference in a new issue