BUGFIX Proper check for combined file path in Requirements_Backend::process_combined_files() (from r100614)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105605 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 04:18:14 +00:00
parent a65037650f
commit 86e799f008

View File

@ -707,7 +707,7 @@ class Requirements_Backend {
$path = $this->path_for_file($file);
if($path) $jsRequirements[] = $path;
}
$response->addHeader('X-Include-JS', implode(',', $jsRequirements));
foreach(array_diff_key($this->css,$this->blocked) as $file => $params) {
@ -917,9 +917,10 @@ class Requirements_Backend {
$base = Director::baseFolder() . '/';
foreach(array_diff_key($combinedFiles, $this->blocked) as $combinedFile => $dummy) {
$fileList = $this->combine_files[$combinedFile];
$combinedFilePath = $base . '/' . $combinedFilesFolder . '/' . $combinedFile;
// Determine if we need to build the combined include
if(file_exists($base . $combinedFile) && !isset($_GET['flush'])) {
if(file_exists($combinedFilePath) && !isset($_GET['flush'])) {
// file exists, check modification date of every contained file
$srcLastMod = 0;
foreach($fileList as $file) {