From 393fc39bf28edf884de732404a959610014da938 Mon Sep 17 00:00:00 2001 From: web-commerce-og <{ID}+{username}@users.noreply.github.com> Date: Thu, 9 Mar 2023 16:40:38 +0100 Subject: [PATCH] [TASK] move ExtensionManagementUtility::addStaticFile to TCA/Overrides fixes #57 --- Configuration/TCA/Overrides/sys_template.php | 10 ++++++++++ ext_tables.php | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 Configuration/TCA/Overrides/sys_template.php delete mode 100644 ext_tables.php diff --git a/Configuration/TCA/Overrides/sys_template.php b/Configuration/TCA/Overrides/sys_template.php new file mode 100644 index 0000000..4a31f6e --- /dev/null +++ b/Configuration/TCA/Overrides/sys_template.php @@ -0,0 +1,10 @@ +get('media_upload'); + +// Possible Static TS loading +if (true === isset($configuration['autoload_typoscript']) && true === (bool)$configuration['autoload_typoscript']) { + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('media_upload', 'Configuration/TypoScript', 'Media upload'); +} diff --git a/ext_tables.php b/ext_tables.php deleted file mode 100644 index 906bf5b..0000000 --- a/ext_tables.php +++ /dev/null @@ -1,11 +0,0 @@ -get('media_upload'); - - // Possible Static TS loading - if (true === isset($configuration['autoload_typoscript']) && true === (bool)$configuration['autoload_typoscript']) { - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('media_upload', 'Configuration/TypoScript', 'Media upload'); - } -});