From 44bd66d843cb9c1540640850757c019c79b0d93d Mon Sep 17 00:00:00 2001 From: Norbert Micheel Date: Tue, 19 Nov 2024 04:40:37 +0100 Subject: [PATCH] install fix --- install.php | 4 ++-- package.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install.php b/install.php index 5a3ebde..443a3cb 100755 --- a/install.php +++ b/install.php @@ -12,6 +12,6 @@ rex_delete_cache(); echo rex_view::success('Das Meta-Info Feld "Beschreibung" wurde angelegt und der Cache gelöscht!'); } -if (!is_dir($addon->getDataPath())) { - rex_dir::copy($this->getPath('data'), $this->getDataPath()); +if (!is_dir($addon->getDataPath()) && is_dir($addon->getPath('data'))) { + rex_dir::copy($addon->getPath('data'), $addon->getDataPath()); } diff --git a/package.yml b/package.yml index 998548b..7753b74 100755 --- a/package.yml +++ b/package.yml @@ -1,5 +1,5 @@ package: newsmanager -version: '3.1.1' +version: '3.1.2' author: Friends Of REDAXO supportpage: https://github.com/FriendsOfREDAXO/newsmanager/