From d543d7b1e3ba2cf3a7eda98e8235b4a9816189ee Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Tue, 28 Jul 2015 13:48:43 -0400 Subject: [PATCH] make admin_images less picky about sizes syntax --- admin_images.php | 2 +- inc/wfpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin_images.php b/admin_images.php index 05ff2ce..3b0fef7 100644 --- a/admin_images.php +++ b/admin_images.php @@ -37,7 +37,7 @@ function admin_images_get_fields() { $data['name'] = format_oneline(_REQUEST_cut('name')); $data['caption'] = format_oneline(_REQUEST_cut('caption')); - $data['sizes'] = format_unix(_REQUEST_cut('sizes')); + $data['sizes'] = str_replace(' ', '', strtolower(format_unix(_REQUEST_cut('sizes')))); if($_FILES['image'] && $_FILES['image']['error'] == 0) { $data['image'] = convert_uploaded_image('image', $GLOBALS['upload_directory'] . $GLOBALS['image_file_name'], $GLOBALS['image_max_width'], $GLOBALS['image_max_height'], $GLOBALS['image_thumb_max_width'], $GLOBALS['image_thumb_max_height']); diff --git a/inc/wfpl b/inc/wfpl index 63853e1..062d46e 160000 --- a/inc/wfpl +++ b/inc/wfpl @@ -1 +1 @@ -Subproject commit 63853e1feaf55ab5542f06de4e914af24e8cc3e3 +Subproject commit 062d46e16429f2e55573567518cb01c83b319ac4 -- 1.7.10.4