Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl-cms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2d7fb7d
)
change admin_image image filenames for adblockplus
author
Jason Woofenden
<jason@jasonwoof.com>
Sun, 1 Sep 2013 04:18:49 +0000
(
00:18
-0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Sun, 1 Sep 2013 04:18:49 +0000
(
00:18
-0400)
admin_images.php
patch
|
blob
|
history
diff --git
a/admin_images.php
b/admin_images.php
index
b57f2a4
..
90a99c0
100644
(file)
--- a/
admin_images.php
+++ b/
admin_images.php
@@
-135,7
+135,7
@@
function admin_images_main_display($id) {
continue;
}
list($max_width, $max_height) = explode('x', $max_hw);
continue;
}
list($max_width, $max_height) = explode('x', $max_hw);
- $src = str_replace('.', "-$max_hw.", $big_src);
+ $src = str_replace('.', "-$max_width-$max_height.", $big_src);
$dimensions = image_dimensions($src);
if($dimensions) {
list($width, $height) = explode('x', $dimensions);
$dimensions = image_dimensions($src);
if($dimensions) {
list($width, $height) = explode('x', $dimensions);
@@
-193,7
+193,7
@@
function admin_images_main_form($id = false) {
continue;
}
list($max_width, $max_height) = explode('x', $max_hw);
continue;
}
list($max_width, $max_height) = explode('x', $max_hw);
- $src = str_replace('.', "-$max_hw.", $big_src);
+ $src = str_replace('.', "-$max_width-$max_height.", $big_src);
if(($_FILES['image'] && $_FILES['image']['error'] == 0) || !file_exists($src)) {
imagemagick_convert($big_src, $src, "-geometry $max_hw", 'Resizing image');
}
if(($_FILES['image'] && $_FILES['image']['error'] == 0) || !file_exists($src)) {
imagemagick_convert($big_src, $src, "-geometry $max_hw", 'Resizing image');
}