mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-06 07:41:05 +01:00
Back out lang removal code as it is causing problems
This commit is contained in:
10
admin.php
10
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';
|
||||
|
||||
Reference in New Issue
Block a user