Skip to content

Commit

Permalink
add compatibility for TYPO3 12
Browse files Browse the repository at this point in the history
use feature no. 85160: auto create management DB fields from TCA ctrl
  • Loading branch information
franzholz committed Jun 2, 2023
1 parent 123f91b commit bd139a7
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 16 deletions.
5 changes: 5 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2023-06-02 Franz Holzinger <[email protected]>
* compatibility Deprecation no.92947: replace TYPO3_MODE by TYPO3 or remove this constant
* add compatibility for TYPO3 12
* use feature no. 85160: auto create management DB fields from TCA ctrl

2022-04-08 Franz Holzinger <[email protected]>
* add compatibility for PHP 8

Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/tx_transactor_transactions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('TYPO3_MODE') || die('Access denied.');
defined('TYPO3') || die('Access denied.');

// ******************************************************************
// transactions table
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
],
"require": {
"php": "^7.4 || ^8.0",
"typo3/cms-core": "^8.7 || ^9.5 || ^10.4 || ^11.5",
"jambagecom/div2007": "^1.12 || ^1.13 || ^1.14"
"typo3/cms-core": "^10.4 || ^11.5 || ^12.4",
"jambagecom/div2007": "^1.14"
},
"suggest": {
"friendsoftypo3/typo3db-legacy": "^1"
Expand Down
4 changes: 2 additions & 2 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
'constraints' => [
'depends' => [
'php' => '7.4.0-8.1.99',
'typo3' => '8.7.0-11.5.99',
'div2007' => '1.12.0-0.0.0',
'typo3' => '10.4.0-12.4.99',
'div2007' => '1.14.0-0.0.0',
],
'conflicts' => [
],
Expand Down
2 changes: 1 addition & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('TYPO3_MODE') || die('Access denied.');
defined('TYPO3') || die('Access denied.');

if (!defined ('TRANSACTOR_EXT')) {
define('TRANSACTOR_EXT', 'transactor');
Expand Down
5 changes: 0 additions & 5 deletions lib/class.tx_transactor_listener.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,3 @@ public function execute ($params) {
}
}


if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/transactor/class.tx_transactor_listener.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/transactor/class.tx_transactor_listener.php']);
}

5 changes: 0 additions & 5 deletions model/class.tx_transactor_language.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,3 @@ public function init1 ($pObj, $cObj, $conf, $scriptRelPath) {
}
}


if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/transactor/model/class.tx_transactor_language.php']) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/transactor/model/class.tx_transactor_language.php']);
}

0 comments on commit bd139a7

Please sign in to comment.