changeset 1403:4670c1c39746

Fixed minor bug in NewPage.py that lead to a NameError.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Wed, 23 Aug 2006 20:52:26 +0200
parents b7ca51e9be1e
children e6bf86b4a735
files MoinMoin/macro/NewPage.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/NewPage.py	Mon Aug 21 16:39:44 2006 +0200
+++ b/MoinMoin/macro/NewPage.py	Wed Aug 23 20:52:26 2006 +0200
@@ -52,11 +52,11 @@
     def getArgs(self, argstr):
         """ Temporary function until Oliver Graf args parser is finished
 
-        @param string: string from the wiki markup [[NewPage(string)]]
+        @param argstr: string from the wiki markup [[NewPage(string)]]
         @rtype: dict
         @return: dictionary with macro options
         """
-        if not string:
+        if not argstr:
             return {}
         args = [s.strip() for s in argstr.split(',')]
         args = dict(zip(self.arguments, args))