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); }