Skip to content

Commit

Permalink
[TASK] move ExtensionManagementUtility::addStaticFile to TCA/Overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
web-commerce-og authored and web-commerce-og committed Mar 9, 2023
1 parent 5740f96 commit 393fc39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 10 additions & 0 deletions Configuration/TCA/Overrides/sys_template.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
declare(strict_types=1);
defined('TYPO3') or die();

$configuration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class) ->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');
}
11 changes: 0 additions & 11 deletions ext_tables.php

This file was deleted.

0 comments on commit 393fc39

Please sign in to comment.