From e3261ee7139f443ce1c3c3562b46cd1548fc0323 Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Wed, 13 May 2009 22:01:20 +0000 Subject: [PATCH] MINOR: reverted r76626 git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@76741 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Image.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/model/Image.php b/core/model/Image.php index adf838f85..3f6abafa9 100755 --- a/core/model/Image.php +++ b/core/model/Image.php @@ -102,12 +102,6 @@ class Image extends File { $url = $this->URL(); $title = ($this->Title) ? $this->Title : $this->Filename; - // remove file path and extension - // that accessware.co.nz complains about this - if (preg_match("/([^\/.]*)\..{1,6}$/", $title, $matches)) { - $title = $matches[1]; - } - return "\"$title\""; } }