Commit c1899d64 authored by fettesvieh's avatar fettesvieh

implemented a workaround for the "file not found" error message, when clicking...

implemented a workaround for the "file not found" error message, when clicking on the "Administration Control Panel" link on the breadcrumb
parent f8ed814c
......@@ -65,10 +65,9 @@ class modules
define('IN_ACP3', true);
}
$stm = !empty($_GET['stm']) ? explode('/', $_GET['stm']) : 0;
$def_mod = defined('IN_ADM') ? 'home' : 'news';
$def_page = defined('IN_ADM') ? 'adm_list' : 'list';
$this->mod = !empty($stm[0]) ? $stm[0] : $def_mod;
$this->mod = !empty($stm[0]) ? $stm[0] : 'news';
$this->page = !empty($stm[1]) ? $stm[1] : $def_page;
$this->cat = !empty($_POST['cat']) ? $_POST['cat'] : '0';
......
......@@ -24,6 +24,8 @@ if (CONFIG_MAINTENANCE == '1' && defined('IN_ACP3')) {
if (!$auth->is_user() && defined('IN_ADM') && $modules->mod != 'users' && $modules->page != 'login') {
redirect('users/login');
} elseif ($auth->is_user() && defined('IN_ADM') && empty($_GET['stm'])) {
redirect(0, ROOT_DIR);
}
// Content einbinden
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment