Commit 624ccb66 authored by Fabian Galinski's avatar Fabian Galinski

[BUGFIX] The database entries can't created anymore on standard pages...

parent c8fb8783
......@@ -6,10 +6,6 @@ if (!defined('TYPO3_MODE')) {
// Path to the localisation file
$localisationFilePath = 'LLL:EXT:content_replacer/Resources/Private/Language/locallang_db.xml:';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_content_replacer_category');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToInsertRecords('tx_content_replacer_category');
$generalLabelsPrefix = 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.';
if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 8000000) {
$generalLabelsPrefix = 'LLL:EXT:lang/locallang_general.xlf:LGL.';
......
......@@ -6,10 +6,6 @@ if (!defined('TYPO3_MODE')) {
// Path to the localisation file
$localisationFilePath = 'LLL:EXT:content_replacer/Resources/Private/Language/locallang_db.xml:';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_content_replacer_term');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToInsertRecords('tx_content_replacer_term');
$generalLabelsPrefix = 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.';
if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 8000000) {
$generalLabelsPrefix = 'LLL:EXT:lang/locallang_general.xlf:LGL.';
......
......@@ -8,3 +8,11 @@ if (!defined('TYPO3_MODE')) {
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'content_replacer', 'Configuration/Typoscript/', 'Content Replacer'
);
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_content_replacer_category');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToInsertRecords('tx_content_replacer_category');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_content_replacer_term');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToInsertRecords('tx_content_replacer_term');
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment