[BUGFIX] Show icons of backend layouts 87/25087/2
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 31 Oct 2013 09:22:11 +0000 (10:22 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 2 Nov 2013 13:52:48 +0000 (14:52 +0100)
Since changing the implementation of backend layouts (#37208) the icons
of backend layouts are not shown anymore.

This change fixed the path so that it is working again.

Change-Id: I7de03ac7fa90c5f62ec66b14dd391a316b858a98
Resolves: #52953
Releases: 6.2
Reviewed-on: https://review.typo3.org/25087
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/backend/Classes/View/BackendLayout/DefaultDataProvider.php

index 0f10afe..8bb3924 100644 (file)
@@ -121,7 +121,7 @@ class DefaultDataProvider implements DataProviderInterface {
 
                if (!empty($icon)) {
                        $path = rtrim($GLOBALS['TCA']['backend_layout']['ctrl']['selicon_field_path'], '/') . '/';
-                       $iconPath = $path . $icon;
+                       $iconPath = '../' . $path . $icon;
                }
 
                return $iconPath;