File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -469,7 +469,20 @@ function setCombinedFilesFolder($folder) {
469469 * @return String Folder relative to the webroot
470470 */
471471 function getCombinedFilesFolder () {
472- return ($ this ->combinedFilesFolder ) ? $ this ->combinedFilesFolder : Kohana::config ('upload.relative_directory ' , FALSE );
472+ $ default = Kohana::config ('upload.relative_directory ' , FALSE );
473+
474+ if (Kohana::config ("cdn.cdn_store_dynamic_content " ) AND Kohana::config ("requirements.cdn_store_combined_files " ))
475+ {
476+ $ subdomain_dir = '' ;
477+ if (Kohana::config ('settings.subdomain ' ) != '' ) {
478+ // Make sure there's a slash on the end
479+ $ subdomain_dir = rtrim (Kohana::config ('settings.subdomain ' ), '/ ' ).'/ ' ;
480+ }
481+
482+ $ default = $ subdomain_dir . Kohana::config ('upload.relative_directory ' , FALSE );
483+ }
484+
485+ return ($ this ->combinedFilesFolder ) ? $ this ->combinedFilesFolder : $ default ;
473486 }
474487
475488 /**
You can’t perform that action at this time.
0 commit comments