Added feature #13379: Introduced a Sprite Icon API to render icons from sprites ...
[Packages/TYPO3.CMS.git] / typo3 / class.filelistfoldertree.php
index 717b6ab..1847791 100644 (file)
@@ -406,6 +406,13 @@ class filelistFolderTree extends t3lib_folderTree {
                                $HTML = $this->PMicon($row,$a,$c,$nextCount,$exp);
 
                                $webpath = t3lib_BEfunc::getPathType_web_nonweb($path);
+
+                               if (is_writable($path)) {
+                                       $type = '';
+                               } else {
+                                       $type = 'readonly';
+                               }
+
                                $icon = 'gfx/i/_icon_' .$webpath . 'folders' . ($type == 'readonly' ? '_ro' : '') . '.gif';
                                if ($val == '_temp_')   {
                                        $icon = 'gfx/i/sysf.gif';