JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
make admin_images less picky about sizes syntax
authorJason Woofenden <jason@jasonwoof.com>
Tue, 28 Jul 2015 17:48:43 +0000 (13:48 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 28 Jul 2015 17:48:58 +0000 (13:48 -0400)
admin_images.php
inc/wfpl

index 05ff2ce..3b0fef7 100644 (file)
@@ -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']);
index 63853e1..062d46e 160000 (submodule)
--- a/inc/wfpl
+++ b/inc/wfpl
@@ -1 +1 @@
-Subproject commit 63853e1feaf55ab5542f06de4e914af24e8cc3e3
+Subproject commit 062d46e16429f2e55573567518cb01c83b319ac4