Permalink
Browse files

ENHANCEMENT #6023 Shorten SSViewer cached template path for readabili…

…ty of the filenames, and also so Windows doesn't break on long paths (from r111086)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112891 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent ee9c205 commit 0200c75ca06e591f39f56383557ae64f1d3dff77 @sminnee sminnee committed Oct 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/SSViewer.php
View
@@ -374,7 +374,7 @@ public function process($item, $cache = null) {
}
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);

0 comments on commit 0200c75

Please sign in to comment.