Skip to content

Commit f617608

Browse files
committed
Move addStaticFile from ext_tables to TCA/Overrides for sys_template. Replace TYPO3_MODE to TYPO3.
1 parent 1d22dac commit f617608

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
---------
44

5+
7.0.1
6+
~~~~~
7+
8+
1) [BUGFIX] Move addStaticFile from ext_tables to TCA/Overrides for sys_template. Replace TYPO3_MODE to TYPO3.
9+
510
7.0.0
611
~~~~~
712

Configuration/TCA/Overrides/pages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
defined('TYPO3_MODE') or die();
3+
defined('TYPO3') or die('Access denied.');
44

55
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
66
'imageopt',
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
defined('TYPO3') or die('Access denied.');
4+
5+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('imageopt', 'Configuration/TypoScript', 'Imageopt');

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'title' => 'Optimize images created/resized by TYPO3',
1313
'description' => 'Optimize images created/resized by TYPO3 so they take less space. Safe as it does not optimize original images.',
1414
'category' => 'be',
15-
'version' => '7.0.0',
15+
'version' => '7.0.1',
1616
'state' => 'stable',
1717
'uploadfolder' => false,
1818
'createDirs' => '',

ext_localconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
defined('TYPO3_MODE') || die('Access denied.');
3+
defined('TYPO3') or die('Access denied.');
44

55
// Few xclasses to make TYPO3 to create copy of images even if not needed.
66
// This way we can make optimization on copies always to not destroy original images.

ext_tables.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
2-
defined('TYPO3_MODE') || die('Access denied.');
2+
3+
defined('TYPO3') or die('Access denied.');
34

45
call_user_func(
56
function () {
@@ -22,7 +23,5 @@ function () {
2223
'tx_imageopt_domain_model_optimizationstepresult',
2324
'EXT:imageopt/Resources/Private/Language/locallang_csh_tx_imageopt_domain_model_optimizationresult.xlf'
2425
);
25-
26-
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('imageopt', 'Configuration/TypoScript', 'Imageopt');
2726
}
2827
);

0 commit comments

Comments
 (0)