File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,23 @@ sub _make_cache_path {
440
440
if (!-d $real_cache_path ) {
441
441
require MT::FileMgr;
442
442
my $fmgr = $blog ? $blog -> file_mgr : MT::FileMgr-> new(' Local' );
443
- $fmgr -> mkpath($real_cache_path ) or return undef ;
443
+ # The change below is related to
444
+ # http://bugs.movabletype.org/?82495
445
+ unless ($fmgr -> mkpath($real_cache_path )) {
446
+ my $app = MT-> instance;
447
+ $app -> log (
448
+ {
449
+ message => $app -> translate(
450
+ " Could not create asset cache path: [_1]" ,
451
+ $fmgr -> errstr
452
+ ),
453
+ level => MT::Log::ERROR(),
454
+ class => ' asset' ,
455
+ category => ' cache' ,
456
+ }
457
+ );
458
+ return undef ;
459
+ }
444
460
}
445
461
446
462
my $asset_cache_path = File::Spec-> catdir(($pseudo ? $format : $root_path ),
You can’t perform that action at this time.
0 commit comments