Skip to content

Commit

Permalink
Fix create temp folder if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Joe committed Jun 5, 2017
1 parent 4b9d5dc commit 5f5bfa5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions thirdparty/tinymce/tiny_mce_gzip.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@

// Handle incoming request if it's a script call
if (TinyMCE_Compressor::getParam("js")) {
// Default settings
$tempFolder = TEMP_FOLDER . '/tinymce-cache';
if (!file_exists($tempFolder)) {
mkdir($tempFolder);
}
// Default settings
$tinyMCECompressor = new TinyMCE_Compressor(array(
// CUSTOM SilverStripe
'cache_dir' => TEMP_FOLDER.'/tinymce-cache'
'cache_dir' => $tempFolder
// CUSTOM END
));

Expand Down

0 comments on commit 5f5bfa5

Please sign in to comment.