From 44e33403dfda252d202e2efcb7ad46feb30f2da1 Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Tue, 16 Jul 2024 17:33:29 +0200 Subject: [PATCH] =?UTF-8?q?CSS=20etwas=20h=C3=BCbscher=20gemacht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boot.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index f894144..735c4a8 100644 --- a/boot.php +++ b/boot.php @@ -11,6 +11,7 @@ use rex_csrf_token; use rex_extension; use rex_extension_point; +use rex_package; use rex_plugin; use rex_url; use rex_yform_manager_dataset; @@ -219,7 +220,7 @@ static function ($a) { } }); -if (rex::isBackend()) { +if (rex::isBackend() && \rex_addon::get('neues') && \rex_addon::get('neues')->isAvailable() && !rex::isSafeMode()) { $addon = rex_addon::get('neues'); $pages = $addon->getProperty('pages'); @@ -232,6 +233,8 @@ static function ($a) { $params['_csrf_token'] = $token['_csrf_token']; $params['func'] = 'add'; - $pages['neues']['title'] .= ' +'; + $href = rex_url::backendPage('neues/entry', $params); + + $pages['neues']['title'] .= ' +'; $addon->setProperty('pages', $pages); }