aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Cgi/create.py')
-rw-r--r--Mailman/Cgi/create.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py
index 9421731f..8f20385d 100644
--- a/Mailman/Cgi/create.py
+++ b/Mailman/Cgi/create.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2016 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -104,7 +104,7 @@ def process_request(doc, cgidata):
password = cgidata.getfirst('password', '').strip()
confirm = cgidata.getfirst('confirm', '').strip()
auth = cgidata.getfirst('auth', '').strip()
- langs = cgidata.getfirst('langs', [mm_cfg.DEFAULT_SERVER_LANGUAGE])
+ langs = cgidata.getvalue('langs', [mm_cfg.DEFAULT_SERVER_LANGUAGE])
if not isinstance(langs, ListType):
langs = [langs]
@@ -292,7 +292,7 @@ def process_request(doc, cgidata):
# Because the cgi module blows
class Dummy:
- def getvalue(self, name, default):
+ def getfirst(self, name, default):
return default
dummy = Dummy()