[BUGFIX] Paths to table icons are broken in TYPO3 6.2 81/44481/2
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 2 Nov 2015 17:05:15 +0000 (12:05 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 2 Nov 2015 17:09:55 +0000 (18:09 +0100)
Resolves: #71108
Change-Id: I636dca2816449623b1753d0f1b400203bbbb468d
Reviewed-on: https://review.typo3.org/44481
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
23 files changed:
ChangeLog
Configuration/TCA/Overrides/static_countries.php
Configuration/TCA/Overrides/static_country_zones.php [new file with mode: 0644]
Configuration/TCA/Overrides/static_currencies.php
Configuration/TCA/Overrides/static_languages.php
Configuration/TCA/Overrides/static_territories.php
Configuration/TCA/static_countries.php
Configuration/TCA/static_country_zones.php
Configuration/TCA/static_currencies.php
Configuration/TCA/static_languages.php
Configuration/TCA/static_territories.php
Resources/Public/Images/Icons/StaticInfoTablesManager.png [new file with mode: 0644]
Resources/Public/Images/Icons/icon_static_countries.gif [deleted file]
Resources/Public/Images/Icons/icon_static_currencies.gif [deleted file]
Resources/Public/Images/Icons/icon_static_languages.gif [deleted file]
Resources/Public/Images/Icons/icon_static_territories.gif [deleted file]
Resources/Public/Images/Icons/moduleicon.gif [deleted file]
Resources/Public/Images/Icons/static_countries.svg [new file with mode: 0644]
Resources/Public/Images/Icons/static_country_zones.svg [new file with mode: 0644]
Resources/Public/Images/Icons/static_currencies.svg [new file with mode: 0644]
Resources/Public/Images/Icons/static_languages.svg [new file with mode: 0644]
Resources/Public/Images/Icons/static_territories.svg [new file with mode: 0644]
ext_tables.php

index 49aceb2..4b730c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-11-02  Stanislas Rolland  <typo3(arobas)sjbr.ca>
+
+       * Resolves #71108: some broken icon paths
+
 2015-10-11  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Resolves #70592: Fix deprecated TCA specification for select fields
index 3e7a9e6..7dd0b91 100644 (file)
@@ -3,6 +3,7 @@ defined('TYPO3_MODE') or die();
 // Compatibility with 6.2
 if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
        $GLOBALS['TCA']['static_countries']['ctrl']['label_userFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel';
+       $GLOBALS['TCA']['static_countries']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_countries.svg';
        $GLOBALS['TCA']['static_countries']['columns']['cn_parent_territory_uid']['config']['itemsProcFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateTerritoriesSelector';
        $GLOBALS['TCA']['static_countries']['columns']['cn_currency_uid']['config']['itemsProcFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateCurrenciesSelector';
        $GLOBALS['TCA']['static_countries']['columns']['cn_currency_uid']['config']['wizards']['suggest']['default'] = array('receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\SuggestReceiver');
diff --git a/Configuration/TCA/Overrides/static_country_zones.php b/Configuration/TCA/Overrides/static_country_zones.php
new file mode 100644 (file)
index 0000000..583a205
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+defined('TYPO3_MODE') or die();
+// Compatibility with 6.2
+if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
+       $GLOBALS['TCA']['static_country_zones']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_country_zones.svg';
+}
\ No newline at end of file
index 957c3f0..08a3796 100644 (file)
@@ -3,4 +3,5 @@ defined('TYPO3_MODE') or die();
 // Compatibility with 6.2
 if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
        $GLOBALS['TCA']['static_currencies']['ctrl']['label_userFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel';
+       $GLOBALS['TCA']['static_currencies']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_currencies.svg';
 }
\ No newline at end of file
index d5c0ef0..d89975e 100644 (file)
@@ -3,4 +3,5 @@ defined('TYPO3_MODE') or die();
 // Compatibility with 6.2
 if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
        $GLOBALS['TCA']['static_languages']['ctrl']['label_userFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel';
+       $GLOBALS['TCA']['static_languages']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_languages.svg';
 }
\ No newline at end of file
index 7e437ec..5ca0845 100644 (file)
@@ -3,5 +3,6 @@ defined('TYPO3_MODE') or die();
 // Compatibility with 6.2
 if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
        $GLOBALS['TCA']['static_territories']['ctrl']['label_userFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel';
+       $GLOBALS['TCA']['static_territories']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_territories.svg';
        $GLOBALS['TCA']['static_territories']['columns']['tr_parent_territory_uid']['config']['itemsProcFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateTerritoriesSelector';
 }
\ No newline at end of file
index 39712ae..f4864db 100644 (file)
@@ -13,7 +13,7 @@ return array(
                'default_sortby' => 'ORDER BY cn_short_en',
                'delete' => 'deleted',
                'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries.title',
-               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/icon_static_countries.gif',
+               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_countries.svg',
                'searchFields' => 'cn_short_en,cn_official_name_local,cn_official_name_en'
        ),
        'interface' => array(
index ecbf6cc..4ea6348 100644 (file)
@@ -11,7 +11,7 @@ return array(
                'default_sortby' => 'ORDER BY zn_name_local',
                'delete' => 'deleted',
                'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones.title',
-               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/icon_static_countries.gif',
+               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_country_zones.svg',
                'searchFields' => 'zn_name_en,zn_name_local'
        ),
        'interface' => array(
index b0619af..27e93e4 100644 (file)
@@ -13,7 +13,7 @@ return array(
                'default_sortby' => 'ORDER BY cu_name_en',
                'delete' => 'deleted',
                'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies.title',
-               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/icon_static_currencies.gif',
+               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_currencies.svg',
                'searchFields' => 'cu_name_en'
        ),
        'interface' => array(
index 3916698..ec515bd 100644 (file)
@@ -13,7 +13,7 @@ return array(
                'default_sortby' => 'ORDER BY lg_name_en',
                'delete' => 'deleted',
                'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages.title',
-               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/icon_static_languages.gif',
+               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_languages.svg',
                'searchFields' => 'lg_name_en,lg_name_local'
        ),
        'interface' => array(
index 57dde3f..5b400e6 100644 (file)
@@ -13,7 +13,7 @@ return array(
                'default_sortby' => 'ORDER BY tr_name_en',
                'delete' => 'deleted',
                'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_territories.title',
-               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/icon_static_territories.gif',
+               'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/static_territories.svg',
                'searchFields' => 'tr_name_en'
        ),
        'interface' => array(
diff --git a/Resources/Public/Images/Icons/StaticInfoTablesManager.png b/Resources/Public/Images/Icons/StaticInfoTablesManager.png
new file mode 100644 (file)
index 0000000..43e262d
Binary files /dev/null and b/Resources/Public/Images/Icons/StaticInfoTablesManager.png differ
diff --git a/Resources/Public/Images/Icons/icon_static_countries.gif b/Resources/Public/Images/Icons/icon_static_countries.gif
deleted file mode 100644 (file)
index b5dfc91..0000000
Binary files a/Resources/Public/Images/Icons/icon_static_countries.gif and /dev/null differ
diff --git a/Resources/Public/Images/Icons/icon_static_currencies.gif b/Resources/Public/Images/Icons/icon_static_currencies.gif
deleted file mode 100644 (file)
index 7d50a8f..0000000
Binary files a/Resources/Public/Images/Icons/icon_static_currencies.gif and /dev/null differ
diff --git a/Resources/Public/Images/Icons/icon_static_languages.gif b/Resources/Public/Images/Icons/icon_static_languages.gif
deleted file mode 100644 (file)
index 72bfd90..0000000
Binary files a/Resources/Public/Images/Icons/icon_static_languages.gif and /dev/null differ
diff --git a/Resources/Public/Images/Icons/icon_static_territories.gif b/Resources/Public/Images/Icons/icon_static_territories.gif
deleted file mode 100644 (file)
index 49dee09..0000000
Binary files a/Resources/Public/Images/Icons/icon_static_territories.gif and /dev/null differ
diff --git a/Resources/Public/Images/Icons/moduleicon.gif b/Resources/Public/Images/Icons/moduleicon.gif
deleted file mode 100644 (file)
index b10bea7..0000000
Binary files a/Resources/Public/Images/Icons/moduleicon.gif and /dev/null differ
diff --git a/Resources/Public/Images/Icons/static_countries.svg b/Resources/Public/Images/Icons/static_countries.svg
new file mode 100644 (file)
index 0000000..ed9d391
--- /dev/null
@@ -0,0 +1,11 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.1"
+ wdith="16"
+ height="16">
+ <g>
+    <image x="0" y="0" width="16" height="16"
+       xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADjSURBVDhPtY8xCsJAEEV/ArZewMYiWHsMG08hKqkE9QApciC9gnWOkVbwBjp/dnazWSVEwQefTML8txv8lbZtnwwqdPkKKzVNI8Wqk8xQLW6XvMQaOGKDEw7YSeY4Y4uVnhyKvpRmiLqudYm4ZTldXqPysMDDG7hbmEBF9isfJP6jhrBMKgrC6RQxuhewkkv37iTvAt5EdwK9Mp9Led4txM9pXF2GWMBMbYEZJWBiSZ5lYWlQsEcZBLEkE8EYWCYce4KJzI+i0FMI5zR6A6NX5nyV+GsSP6fRtqFFn3hprOAHgBfdA2aUg91FWQAAAABJRU5ErkJggg=="/>
+ </g>
+</svg>
diff --git a/Resources/Public/Images/Icons/static_country_zones.svg b/Resources/Public/Images/Icons/static_country_zones.svg
new file mode 100644 (file)
index 0000000..ed9d391
--- /dev/null
@@ -0,0 +1,11 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.1"
+ wdith="16"
+ height="16">
+ <g>
+    <image x="0" y="0" width="16" height="16"
+       xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADjSURBVDhPtY8xCsJAEEV/ArZewMYiWHsMG08hKqkE9QApciC9gnWOkVbwBjp/dnazWSVEwQefTML8txv8lbZtnwwqdPkKKzVNI8Wqk8xQLW6XvMQaOGKDEw7YSeY4Y4uVnhyKvpRmiLqudYm4ZTldXqPysMDDG7hbmEBF9isfJP6jhrBMKgrC6RQxuhewkkv37iTvAt5EdwK9Mp9Led4txM9pXF2GWMBMbYEZJWBiSZ5lYWlQsEcZBLEkE8EYWCYce4KJzI+i0FMI5zR6A6NX5nyV+GsSP6fRtqFFn3hprOAHgBfdA2aUg91FWQAAAABJRU5ErkJggg=="/>
+ </g>
+</svg>
diff --git a/Resources/Public/Images/Icons/static_currencies.svg b/Resources/Public/Images/Icons/static_currencies.svg
new file mode 100644 (file)
index 0000000..6eebf4c
--- /dev/null
@@ -0,0 +1,11 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.1"
+ wdith="16"
+ height="16">
+ <g>
+    <image x="0" y="0" width="16" height="16"
+       xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHySURBVDhPnZPBSxtBGMU/b4J/wULAsBCwhICEhbCUEGzYhiVpCAmLS0soVhKyKERqMDEKQdBDQQsN4kEvQrEUC6Vqte2hllxEqLZKqJ4E9aKnXHLw+JzZTdImipi+5e03szvvNzuzDLWjDnrkN+gJvaRBGqU0JZnJThkigUAhZpXQFSR4X8ggH+sTQZI8SKaGePsOuQjBdwGEPgQR/67j+Q/drNpaGK58D5SFPvgXvPC8csOTdcMRt8EZE9EruWrgLkJ4VUWUBabLw9g6X0RxbwJi1gZXwWFC9BUV838mkSg9Q2w9AnXZD2dGtACy1w19M4rMrwTWT4u4uNo3g/rHmBWu1ePKNvIHKTzdikFdUSD22yxAOKxA24gi9zuJo8pXnFR3rJlr5gDu0tkqZsppjLFx+jcNkuK2AJoe4Y0m8wBfO5+5Dvp5+RlThway7Ev1TQ2CTbAATGYIsFzvNy2BAc6ruyiUDYzuJRB8r9bGdczOtYbrtZttojAiQBzrxtB2HK/LWRYeRORTCP4lHwKhAB9n6sbs3PUl8Kq+Vcy/pH2JQn4jwTcvY3jE+AvgvgXS0ENZMp/1JbxwpkU4c46m941QC+TeaoT+G8DdEm4LwPVvsO1wk/ixJc9+5wA7ugM0zg6pnR6zq4fVJBn0gN0tEV0DzaZNeTLFLDYAAAAASUVORK5CYII="/>
+ </g>
+</svg>
diff --git a/Resources/Public/Images/Icons/static_languages.svg b/Resources/Public/Images/Icons/static_languages.svg
new file mode 100644 (file)
index 0000000..57ddf73
--- /dev/null
@@ -0,0 +1,11 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.1"
+ wdith="16"
+ height="16">
+ <g>
+    <image x="0" y="0" width="16" height="16"
+       xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAD0SURBVDhPzVC7DcIwEH0W7hmAhpYJYAHEHAghoErER6KkSMkwsEfGSEHBDuHu7HNiJ6Si4ElPPp/fe3cJ/gEWmD8xGb9GFndjsTA2h8ENqKqqZlIdeEaGHXGNI/bIgQ0OWGJK5ZVaW6yozqjKcYGayrKs6dIEYeaHf4FOFaOaUg6hKAoRMZyYptO1Ze4N0AchgzdwW/gACfKf4nQB0iCJUO9sZtw4IEznIKZoAiJzc7otugG8yUBAQxYT1ZwE2PfD0HkiOkM3JAnQn+neI2gzCfEBzDCdKe8RgolPrcNfD5Pd6mxIIQ+xORL29TpoiwaFPwTwAW31AbaFOEzOAAAAAElFTkSuQmCC"/>
+ </g>
+</svg>
diff --git a/Resources/Public/Images/Icons/static_territories.svg b/Resources/Public/Images/Icons/static_territories.svg
new file mode 100644 (file)
index 0000000..73a081e
--- /dev/null
@@ -0,0 +1,11 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.1"
+ wdith="16"
+ height="16">
+ <g>
+    <image x="0" y="0" width="16" height="16"
+       xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADBSURBVDhPpZDRDYMwDEQ9DIPykfEYg99K3SD1c2LHBErV9qQzJPG9GKT+qVvAvu9mWSU862vADLkEzKFt26rIethz3QIsmELZrktAKSWaLMDtugyALrCdW1X5Zj5kgjZFBxiof0rvsTpCzb4mjFYAcTv9LYOszuHxbFOcAUwi9aG2rhkwzJnaw3cADAC/BfjP1EL4BMAA8AGA43aspcvePHgGcKObvjb6c1nMHz8hxkz2vTgDgHLT3IjyOjsAv6nWF4p+lbfy5QbsAAAAAElFTkSuQmCC"/>
+ </g>
+</svg>
index 9bb4d50..0294335 100644 (file)
@@ -20,7 +20,7 @@ if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
                        ),
                        array(
                                'access' => 'user,group',
-                               'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/Icons/moduleicon.gif',
+                               'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/Icons/StaticInfoTablesManager.png',
                                'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
                        )
                );