Skip to content

Commit

Permalink
[FEATURE] Update basics for v11/v12 compatibility Feature
Browse files Browse the repository at this point in the history
Replace TYPO3_MODE

Related: T3Voila#497
Release: 11.0.0
  • Loading branch information
opi99 authored and jpmschuler committed Sep 17, 2024
1 parent 75f34c1 commit 7f236ad
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ protected function step4Action()

// Create extension registration in ext_localconf.php
/** @TODO Remove later */
$extLocalconf = "<?php\n" . $fileDescription . "\ndefined('TYPO3_MODE') or die();\n\n" . "/** @TODO This line can be removed after cache is implemented */\n" . "\Tvp\TemplaVoilaPlus\Utility\ExtensionUtility::registerExtension('" . $newExtensionKey . "');\n";
$extLocalconf = "<?php\n" . $fileDescription . "\ndefined('TYPO3') or die();\n\n" . "/** @TODO This line can be removed after cache is implemented */\n" . "\Tvp\TemplaVoilaPlus\Utility\ExtensionUtility::registerExtension('" . $newExtensionKey . "');\n";
GeneralUtility::writeFile($publicExtensionDirectory . '/ext_localconf.php', $extLocalconf . "\n");

// Load package by package manager
Expand All @@ -842,7 +842,7 @@ protected function step4Action()
} else {
// Create extension registration in ext_localconf.php
/** @TODO Remove later */
$extLocalconf = "<?php\n" . $fileDescription . "\ndefined('TYPO3_MODE') or die();\n\n" . "/** @TODO This line can be removed after cache is implemented */\n" . "\Tvp\TemplaVoilaPlus\Utility\ExtensionUtility::registerExtension('" . $selection . "');\n";
$extLocalconf = "<?php\n" . $fileDescription . "\ndefined('TYPO3') or die();\n\n" . "/** @TODO This line can be removed after cache is implemented */\n" . "\Tvp\TemplaVoilaPlus\Utility\ExtensionUtility::registerExtension('" . $selection . "');\n";
GeneralUtility::writeFile($publicExtensionDirectory . '/ext_localconf.php', $extLocalconf . "\n");
}
}
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/Overrides/be_groups.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

defined('TYPO3_MODE') || die();
defined('TYPO3') || die();

// Adding access list to be_groups
$tempColumns = [
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

defined('TYPO3_MODE') || die();
defined('TYPO3') || die();

$tempColumns = [
'tx_templavoilaplus_map' => [
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

defined('TYPO3_MODE') || die();
defined('TYPO3') || die();

// Adding the new content element, "Flexible Content":
$tempColumns = [
Expand Down
2 changes: 1 addition & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

defined('TYPO3_MODE') or die();
defined('TYPO3') or die();
// Unserializing the configuration so we can use it here

// Register "XCLASS" of FlexFormTools for language parsing
Expand Down
2 changes: 1 addition & 1 deletion ext_tables.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('TYPO3_MODE') or die();
defined('TYPO3') or die();

if (TYPO3_MODE === 'BE') {

Expand Down

0 comments on commit 7f236ad

Please sign in to comment.