mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-05 01:01:17 +02:00
BUGFIX: Don't make CMS loading slow if the combined javascript files can't be written.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100979 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
399de6abdd
commit
46586185f6
@ -911,6 +911,11 @@ class Requirements_Backend {
|
|||||||
// Process the combined files
|
// Process the combined files
|
||||||
$base = Director::baseFolder() . '/';
|
$base = Director::baseFolder() . '/';
|
||||||
foreach(array_diff_key($combinedFiles, $this->blocked) as $combinedFile => $dummy) {
|
foreach(array_diff_key($combinedFiles, $this->blocked) as $combinedFile => $dummy) {
|
||||||
|
if(!is_writable($base . $combinedFile)) {
|
||||||
|
user_error("Requirements_Backend::process_combined_files(): Couldn't create '$base$combinedFile'", E_USER_WARNING);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$fileList = $this->combine_files[$combinedFile];
|
$fileList = $this->combine_files[$combinedFile];
|
||||||
$combinedFilePath = $base . $this->combinedFilesFolder . '/' . $combinedFile;
|
$combinedFilePath = $base . $this->combinedFilesFolder . '/' . $combinedFile;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user