File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 3939
4040 if (isset ($ _POST ['collageLayout ' ])) {
4141 $ config ['collage ' ]['layout ' ] = $ _POST ['collageLayout ' ];
42+ if ($ config ['collage ' ]['allow_selection ' ]) {
43+ if ($ config ['collage ' ]['take_frame ' ] !== 'off ' ) {
44+ $ collageFrame = $ config ['collage ' ]['frame ' ];
45+ $ collageFrameDirectory = dirname ($ collageFrame );
46+ $ collageFrameFilename = basename ($ collageFrame );
47+ $ collageLayoutFrame = $ collageFrameDirectory . '/ ' . $ config ['collage ' ]['layout ' ] . '_ ' . $ collageFrameFilename ;
48+ if (file_exists ($ collageLayoutFrame )) {
49+ $ config ['collage ' ]['frame ' ] = $ collageLayoutFrame ;
50+ }
51+ }
52+ if (!empty ($ config ['collage ' ]['background ' ]) && $ config ['collage ' ]['background ' ] !== '' ) {
53+ $ collageBackground = $ config ['collage ' ]['background ' ];
54+ $ collageBackgroundDirectory = dirname ($ collageBackground );
55+ $ collageBackgroundFilename = basename ($ collageBackground );
56+ $ collageLayoutBackground = $ collageBackgroundDirectory . '/ ' . $ config ['collage ' ]['layout ' ] . '_ ' . $ collageBackgroundFilename ;
57+ if (file_exists ($ collageLayoutBackground )) {
58+ $ config ['collage ' ]['background ' ] = $ collageLayoutBackground ;
59+ }
60+ }
61+ }
4262 }
4363 if (isset ($ _POST ['collageLimit ' ])) {
4464 $ config ['collage ' ]['limit ' ] = $ _POST ['collageLimit ' ];
You can’t perform that action at this time.
0 commit comments