From aa5eacc6ffb965906cceaeea3040aa53e0d5189d Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 22 Sep 2010 01:43:43 +0000 Subject: [PATCH] ENHANCEMENT #6023 Shorten SSViewer cached template path for readability of the filenames, and also so Windows doesn't break on long paths git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@111086 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/SSViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/SSViewer.php b/core/SSViewer.php index 77cde6364..ce22809f0 100755 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -374,7 +374,7 @@ class SSViewer { } if(isset($_GET['debug_profile'])) Profiler::mark("SSViewer::process", " for $template"); - $cacheFile = TEMP_FOLDER . "/.cache" . str_replace(array('\\','/',':'),'.',realpath($template)); + $cacheFile = TEMP_FOLDER . "/.cache" . str_replace(array('\\','/',':'), '.', Director::makeRelative(realpath($template))); $lastEdited = filemtime($template);