diff --git a/Changelog b/Changelog index dd01eda..3573606 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +2020-04-30 Franz Holzinger + * compatibility for TYPO3 9: replace deprecated methods + 2019-12-20 Franz Holzinger * compatibility for TYPO3 9: transactor 0.8.0 now runs fully under TYPO3 9.5. * set compatibility = 0 to use the new API by default. diff --git a/Classes/Domain/GatewayProxy.php b/Classes/Domain/GatewayProxy.php index cb98aa3..80ad897 100755 --- a/Classes/Domain/GatewayProxy.php +++ b/Classes/Domain/GatewayProxy.php @@ -82,7 +82,7 @@ public function init ($extensionKey) ) { $this->gatewayClass = $this->extensionManagerConf['gatewayClass']; } else { - $composerFile = ExtensionManagementUtility::siteRelPath($extensionKey) . 'composer.json'; + $composerFile = \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath($extensionKey)) . 'composer.json'; if (file_exists($composerFile)) { $content = file_get_contents($composerFile); $content = json_decode($content, true); diff --git a/ext_emconf.php b/ext_emconf.php index 68f5866..3c765a5 100755 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -8,7 +8,7 @@ 'title' => 'Payment Transactor API', 'description' => 'This is a basic API to develop extensions which connect to different payment transaction gateways.', 'category' => 'misc', - 'version' => '0.8.0', + 'version' => '0.8.1', 'state' => 'stable', 'uploadfolder' => 0, 'createDirs' => '', diff --git a/lib/class.tx_transactor_api.php b/lib/class.tx_transactor_api.php index cb44008..35b25ec 100755 --- a/lib/class.tx_transactor_api.php +++ b/lib/class.tx_transactor_api.php @@ -148,7 +148,7 @@ static public function getGatewayProxyObject ( $handleLib, $confScript ) { - GeneralUtility::requireOnce(ExtensionManagementUtility::extPath($handleLib) . 'model/class.tx_' . $handleLib . '_gatewayfactory.php'); + require_once(ExtensionManagementUtility::extPath($handleLib) . 'model/class.tx_' . $handleLib . '_gatewayfactory.php'); if (is_array($confScript)) { $gatewayExtKey = $confScript['extName'];