From f0f8cd6c7fd49f96c30789012c34ea841fc2cd36 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 23 Oct 2015 19:51:02 -0600 Subject: [PATCH] Back out lang removal code as it is causing problems --- admin.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/admin.php b/admin.php index 8b20dce6..a10fe9cb 100644 --- a/admin.php +++ b/admin.php @@ -357,11 +357,11 @@ class AdminPlugin extends Plugin } /** @var Language $language */ - $require_language = ['pages', 'translations']; - $language = $this->grav['language']; - if ($language->isLanguageInUrl() && !in_array($this->template, $require_language)) { - $this->grav->redirect($this->uri->route()); - } +// $require_language = ['pages', 'translations']; +// $language = $this->grav['language']; +// if ($language->isLanguageInUrl() && !in_array($this->template, $require_language)) { +// $this->grav->redirect($this->uri->route()); +// } // Initialize admin class. require_once __DIR__ . '/classes/admin.php';