Fixed bug #12194: The filetree does not show whether a folder is write protected
authorRupert Germann <rupi@gmx.li>
Tue, 20 Oct 2009 06:54:48 +0000 (06:54 +0000)
committerRupert Germann <rupi@gmx.li>
Tue, 20 Oct 2009 06:54:48 +0000 (06:54 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6175 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.filelistfoldertree.php

index f85b538..9657292 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-19  Rupert Germann  <rupi@gmx.li>
+
+       * Fixed bug #12194: The filetree does not show whether a folder is write protected
+
 2009-10-20  Sebastian Kurfuerst  <sebastian@typo3.org>
 
        * Raised Extbase and Fluid versions to 0.9.10
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';