changeset 1250:97e9866e82c7

Fixed minor bug in getDiff.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Wed, 09 Aug 2006 17:41:59 +0200
parents 32c936ab469e
children 7b128ea29fc4
files MoinMoin/xmlrpc/__init__.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/xmlrpc/__init__.py	Wed Aug 09 17:24:33 2006 +0200
+++ b/MoinMoin/xmlrpc/__init__.py	Wed Aug 09 17:41:59 2006 +0200
@@ -601,6 +601,7 @@
             oldcontents = lambda: oldpage.get_raw_body_str()
 
         if to_rev is None:
+            newpage = currentpage
             newcontents = lambda: currentpage.get_raw_body()
         else:
             newpage = Page(self.request, pagename, rev=to_rev)