From 00af9a65e2182c0e50cebb1e3822336db2fba574 Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Sat, 20 Jul 2024 14:54:29 +0200 Subject: [PATCH] fix deployment error (request does not exist in cli) --- boot.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/boot.php b/boot.php index 295d211..80c0191 100644 --- a/boot.php +++ b/boot.php @@ -105,22 +105,3 @@ static function ($a) { ); } }); - -if (rex::isBackend() && \rex_addon::get('neues') && \rex_addon::get('neues')->isAvailable() && !rex::isSafeMode()) { - $addon = rex_addon::get('neues'); - $pages = $addon->getProperty('pages'); - - $_csrf_key = rex_yform_manager_table::get('rex_neues_entry')->getCSRFKey(); - $token = rex_csrf_token::factory($_csrf_key)->getUrlParams(); - - $params = []; - $params['table_name'] = 'rex_neues_entry'; // Tabellenname anpassen - $params['rex_yform_manager_popup'] = '0'; - $params['_csrf_token'] = $token['_csrf_token']; - $params['func'] = 'add'; - - $href = rex_url::backendPage('neues/entry', $params); - - $pages['neues']['title'] .= ' +'; - $addon->setProperty('pages', $pages); -}