[TASK] Add version 4.5 CSS Styled Content Templates and Compat Version
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / updates / class.tx_coreupdates_cscsplit.php
index 8cc719c..dc35ec9 100644 (file)
@@ -142,7 +142,12 @@ class tx_coreupdates_cscsplit extends Tx_Install_Updates_Base {
                                                        $includedTemplates[$j] = 'EXT:css_styled_content/static/v4.4/';
                                                        $templateNeedsUpdate = true;
                                                }
-                                       } elseif ($compatVersion === $currentVersion || $compatVersion > '4.5') {
+                                       } elseif ($compatVersion <= t3lib_div::int_from_ver('4.5')) {
+                                               if ($includedTemplates[$j] != 'EXT:css_styled_content/static/v4.5/') {
+                                                       $includedTemplates[$j] = 'EXT:css_styled_content/static/v4.5/';
+                                                       $templateNeedsUpdate = true;
+                                               }
+                                       } elseif ($compatVersion === $currentVersion || $compatVersion > '4.6') {
                                                if ($includedTemplates[$j] != 'EXT:css_styled_content/static/') {
                                                        $includedTemplates[$j] = 'EXT:css_styled_content/static/';
                                                        $templateNeedsUpdate = true;