From 26fde8055800c9555e39efa42f8a4a2fafe9114c Mon Sep 17 00:00:00 2001 From: Josh Kosmala Date: Thu, 16 Oct 2008 03:41:19 +0000 Subject: [PATCH] When calling Folder::findOrMake(), set the Title as well as the Name of new folders git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@64354 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- filesystem/Folder.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/filesystem/Folder.php b/filesystem/Folder.php index b6f4bdfd6..249710885 100755 --- a/filesystem/Folder.php +++ b/filesystem/Folder.php @@ -30,6 +30,7 @@ class Folder extends File { $item = new Folder(); $item->ParentID = $parentID; $item->Name = $part; + $item->Title = $part; $item->write(); if(!file_exists($item->getFullPath())) mkdir($item->getFullPath(),Filesystem::$folder_create_mask); } @@ -37,6 +38,8 @@ class Folder extends File { } return $item; } +// To Make SSP Gallery structure work +// $item->Title = $part; function userCanUse() { if( Member::currentUser()->_isAdmin() )