From 1107757128364834c3dbf920a9bd31bb43fcdead Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 25 Jun 2008 05:52:58 +0000 Subject: [PATCH] MINOR: #2445 - Function getFilename in File.php cehcks for Name, but returns Filename (Blynx) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@56944 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- filesystem/File.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/filesystem/File.php b/filesystem/File.php index af4f74f01..6c86e96c2 100755 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -380,8 +380,11 @@ class File extends DataObject { } function getFilename() { - if($this->getField('Name')) return $this->getField('Filename'); - else return 'assets/'; + if($this->getField('Filename')) { + return $this->getField('Filename'); + } else { + return 'assets/'; + } } function setFilename($val) {