[ansel] [patch] Comparing apples to oranges
Brian Keifer
brian at valinor.net
Thu Nov 13 08:41:48 PST 2003
Hi, all.
Attached is a patch that fixes a couple of typos in the gallery creation
process. Namely, the new gallery's screen image width was being compared to
the system-wide height, rather than the width.
-Brian
--
I live in the United States of America, where we are gradually coming to
understand that nothing we do is ever our fault, especially if it is really
stupid.
--Dave Barry, "The Tide is high and other household problems"
-------------- next part --------------
Index: gallery.php
===================================================================
RCS file: /repository/ansel/gallery.php,v
retrieving revision 1.23
diff -u -r1.23 gallery.php
--- gallery.php 10 Nov 2003 20:00:18 -0000 1.23
+++ gallery.php 13 Nov 2003 15:36:29 -0000
@@ -143,11 +143,11 @@
}
/* Make sure screen image width is within set limits */
- if ($gallery_image_width < $conf['image']['height_min']) {
- $gallery_image_width = $conf['image']['height_min'];
+ if ($gallery_image_width < $conf['image']['width_min']) {
+ $gallery_image_width = $conf['image']['width_min'];
$notification->push(sprintf(_("Specified screen image width is too small, value has been set to %s"), $conf['image']['width_min']), 'horde.warning');
- } elseif ($gallery_image_width > $conf['image']['height_max']) {
- $gallery_image_width = $conf['image']['height_max'];
+ } elseif ($gallery_image_width > $conf['image']['width_max']) {
+ $gallery_image_width = $conf['image']['width_max'];
$notification->push(sprintf(_("Specified screen image width is too large, value has been set to %s"), $conf['image']['width_max']), 'horde.warning');
}
More information about the ansel
mailing list