diff MoinMoin/items/__init__.py @ 1210:d5c6c9ada478

Fix incorrect URL while fetching images' diff
author Shitiz Garg <mail@dragooon.net>
date Fri, 06 Jan 2012 17:33:34 +0530
parents c0eaed311e0e
children e63c9c8d0ad9
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Fri Jan 06 17:17:21 2012 +0530
+++ b/MoinMoin/items/__init__.py	Fri Jan 06 17:33:34 2012 +0530
@@ -1046,7 +1046,7 @@
         if PIL is None:
             # no PIL, we can't do anything, we just call the base class method
             return super(TransformableBitmapImage, self)._render_data_diff_atom(oldrev, newrev)
-        url = url_for('frontend.get_item', _external=True, item_name=self.name, rev=newrev.revid)
+        url = url_for('frontend.diffraw', _external=True, item_name=self.name, rev1=oldrev.revid, rev2=newrev.revid)
         return render_template('atom.html',
                                oldrev=oldrev, newrev=newrev, get='binary',
                                content=Markup('<img src="{0}" />'.format(escape(url))))