mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
Only process thumbs when needed
This commit is contained in:
@@ -799,8 +799,8 @@ class AdminBaseController
|
||||
});
|
||||
}
|
||||
|
||||
// Process thumbs
|
||||
if (isset($settings['preview_images'])) {
|
||||
// Generate thumbs if needed
|
||||
if (isset($settings['preview_images']) && $settings['preview_images'] === true) {
|
||||
foreach ($available_files as $filename) {
|
||||
$thumbs[$filename] = $media[$filename]->zoomCrop(100,100)->url();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user