From faa5f20d2d067c166370be657a28f12c734c2c42 Mon Sep 17 00:00:00 2001 From: R Date: Tue, 9 Feb 2021 14:06:50 +0100 Subject: [PATCH] OXAP-344 Fix an include --- CHANGELOG.md | 4 ++++ application/controllers/admin/bestitamazonpay4oxid_init.php | 5 ++++- composer.json | 2 +- ext/bestitamazonpay4oxid_module_config.php | 5 ++++- metadata.php | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f439ec6..149037d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec2.0.0.html). +## [3.6.8] - 2020-02-09 +### Fixed +- Fixed an include + ## [3.6.7] - 2020-02-05 ### Fixed - Use random_bytes diff --git a/application/controllers/admin/bestitamazonpay4oxid_init.php b/application/controllers/admin/bestitamazonpay4oxid_init.php index 9d644fb..9833efa 100755 --- a/application/controllers/admin/bestitamazonpay4oxid_init.php +++ b/application/controllers/admin/bestitamazonpay4oxid_init.php @@ -20,8 +20,11 @@ * @version GIT: $Id$ * @link http://www.bestit-online.de */ -require_once dirname(__FILE__).'/../../../vendor/paragonie/random_compat/lib/random.php'; +$sVendorAutoloader = realpath(dirname(__FILE__).'/../../../').'/vendor/autoload.php'; +if (file_exists($sVendorAutoloader) === true) { + include_once realpath(dirname(__FILE__).'/../../../').'/vendor/autoload.php'; +} /** * Class bestitAmazonPay4Oxid_init */ diff --git a/composer.json b/composer.json index 1941091..3ca5b93 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "oxideshop-module", "keywords": ["oxid", "modules", "eShop"], "homepage": "https://www.bestit-online.de", - "version": "3.6.7", + "version": "3.6.8", "license": [ "GPL-3.0-only", "proprietary" diff --git a/ext/bestitamazonpay4oxid_module_config.php b/ext/bestitamazonpay4oxid_module_config.php index bf9db31..34cb434 100644 --- a/ext/bestitamazonpay4oxid_module_config.php +++ b/ext/bestitamazonpay4oxid_module_config.php @@ -1,6 +1,9 @@ Wenn Sie das Modul von einer vorhergehenden Version updaten muss das Module deaktivert und erneut aktiviert werden' ), 'thumbnail' => 'bestitamazonpay4oxid_logo.png', - 'version' => '3.6.7', + 'version' => '3.6.8', 'author' => 'best it GmbH & Co. KG', 'url' => 'http://www.bestit-online.de', 'email' => 'support@bestit-online.de',