From b82a5e937ce3cccfd56aa27df5093fd9880a784d Mon Sep 17 00:00:00 2001 From: christophboecker Date: Thu, 7 Mar 2024 10:03:26 +0100 Subject: [PATCH] auf __DIR__ umgestellt --- install.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.php b/install.php index d7a7142..3a06da6 100644 --- a/install.php +++ b/install.php @@ -2,11 +2,11 @@ /* Tablesets aktualisieren */ if (rex_addon::get('yform') && rex_addon::get('yform')->isAvailable()) { - rex_yform_manager_table_api::importTablesets(rex_file::get(rex_path::addon(rex_addon::get('neues')->getName(), 'install/tableset.json'))); + rex_yform_manager_table_api::importTablesets(rex_file::get(__DIR__ . '/install/tableset.json')); } if (!rex_media::get('neues_entry_fallback_image.png')) { - rex_file::copy(rex_path::addon('neues', '/install/neues_entry_fallback_image.png'), rex_path::media('neues_entry_fallback_image.png')); + rex_file::copy(__DIR__ . '/install/neues_entry_fallback_image.png', rex_path::media('neues_entry_fallback_image.png')); $data = []; $data['title'] = 'Aktuelles - Fallback-Image'; $data['category_id'] = 0; @@ -22,7 +22,7 @@ if (rex_addon::get('cronjob') && rex_addon::get('cronjob')->isAvailable()) { $cronjob = array_filter(rex_sql::factory()->getArray("SELECT * FROM rex_cronjob WHERE `type` = 'rex_cronjob_neues_publish'")); if (!$cronjob) { - $query = rex_file::get(rex_path::addon('neues', 'install/rex_cronjob_neues_publish.sql')); + $query = rex_file::get(__DIR__ . '/install/rex_cronjob_neues_publish.sql'); rex_sql::factory()->setQuery($query); } } @@ -32,12 +32,12 @@ if (false === rex_config::get('neues', 'url_profile', false)) { $rex_neues_category = array_filter(rex_sql::factory()->getArray("SELECT * FROM rex_url_generator_profile WHERE `table_name` = '1_xxx_rex_neues_category'")); if (!$rex_neues_category) { - $query = rex_file::get(rex_path::addon('neues', 'install/rex_url_profile_neues_category.sql')); + $query = rex_file::get(__DIR__ . '/install/rex_url_profile_neues_category.sql'); rex_sql::factory()->setQuery($query); } $rex_neues_entry = array_filter(rex_sql::factory()->getArray("SELECT * FROM rex_url_generator_profile WHERE `table_name` = '1_xxx_rex_neues_entry'")); if (!$rex_neues_entry) { - $query = rex_file::get(rex_path::addon('neues', 'install/rex_url_profile_neues_entry.sql')); + $query = rex_file::get(__DIR__ . 'install/rex_url_profile_neues_entry.sql'); rex_sql::factory()->setQuery($query); } /* URL-Profile wurden bereits einmal installiert, daher nicht nochmals installieren und Entwickler-Einstellungen respektieren */