Move static template registration to TCA overrides
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 12 Oct 2015 22:51:26 +0000 (22:51 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 12 Oct 2015 22:51:26 +0000 (22:51 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/sr_freecap/trunk@89887 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Configuration/TCA/StaticFiles.php [new file with mode: 0644]
ext_tables.php

index 7c9249e..00dfb86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Cleanup
        * Add composer.json
+       * Move static template registration to TCA overrides
 
 2015-03-31  Stanislas Rolland  <typo3@sjbr.ca>
 
diff --git a/Configuration/TCA/StaticFiles.php b/Configuration/TCA/StaticFiles.php
new file mode 100644 (file)
index 0000000..6201a0c
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+// Register SrFreecap static template
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('sr_freecap', 'Configuration/TypoScript', 'freeCap CAPTCHA');
\ No newline at end of file
index 3dfa3cd..7490d82 100644 (file)
@@ -1,11 +1,6 @@
 <?php
 defined('TYPO3_MODE') or die();
 
-$extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
-
-// Add TypoScript settings
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'freeCap CAPTCHA');
-
 if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        /**
         * Registers a Backend Module
@@ -34,4 +29,4 @@ if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
                        )
                );
        }
-}
+}
\ No newline at end of file