Skip to content

Commit

Permalink
Merge pull request #65 from FriendsOfREDAXO/christophboecker-patch-1
Browse files Browse the repository at this point in the history
install.php auf __DIR__ umgestellt
  • Loading branch information
christophboecker authored Mar 7, 2024
2 parents 0d84312 + b82a5e9 commit 814575d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}
Expand All @@ -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 */
Expand Down

0 comments on commit 814575d

Please sign in to comment.