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/