Always load the image before iterating, but make sure it's not already loaded first.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 19 Feb 2010 16:03:44 +0000 (11:03 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 19 Feb 2010 16:03:44 +0000 (11:03 -0500)
commit60042266979c25b4f2c3bb8cf904184c527a8e1b
tree77de9d2a73b1d6a7c734f9377e7c57d22634580f
parente84569902e2e1cdcb9b04ef8fd508f053c0af7f0
Always load the image before iterating, but make sure it's not already loaded first.

If we attempt to call #load() twice, it will reload the raw data into Horde_Image,
thus resetting the iterator and causing an infinite loop. Also, use consistent method names.
ansel/lib/Gallery.php
ansel/lib/Image.php