Fix issues with localizations not applying properly

This commit is contained in:
James Brooks
2016-05-26 11:35:00 +01:00
parent 48c4240c38
commit 2b87629dca
3 changed files with 15 additions and 4 deletions

View File

@@ -55,8 +55,7 @@ class Localize
*/
public function handle(Request $request, Closure $next)
{
// Early exit optimization.
if (!$this->config->get('setting.automatic_localization')) {
if (!(bool) $this->config->get('setting.automatic_localization')) {
return $next($request);
}