mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Requirements_Backend::process_combined_files() only needs one location where the combined file is (from r100615)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105606 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
86e799f008
commit
3ac0edc117
@ -917,7 +917,7 @@ 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;
|
||||
$combinedFilePath = $base . '/' . $this->combinedFilesFolder . '/' . $combinedFile;
|
||||
|
||||
// Determine if we need to build the combined include
|
||||
if(file_exists($combinedFilePath) && !isset($_GET['flush'])) {
|
||||
@ -950,7 +950,6 @@ class Requirements_Backend {
|
||||
$combinedData .= "/****** FILE: $file *****/\n" . $fileContent . "\n".($isJS ? ';' : '')."\n";
|
||||
}
|
||||
|
||||
$combinedFilePath = Director::baseFolder() . '/' . $this->combinedFilesFolder . '/' . $combinedFile;
|
||||
if(!file_exists(dirname($combinedFilePath))) {
|
||||
Filesystem::makeFolder(dirname($combinedFilePath));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user