In preferences, allow the subscriptions and email fields to be cleared

master
Joey Hess 2008-01-09 17:59:56 -05:00
parent 14002b58d2
commit 141d363888
3 changed files with 6 additions and 5 deletions

View File

@ -275,7 +275,7 @@ sub cgi_prefs ($$) { #{{{
}
elsif ($form->submitted eq 'Save Preferences' && $form->validate) {
foreach my $field (qw(email subscriptions)) {
if (defined $form->field($field) && length $form->field($field)) {
if (defined $form->field($field)) {
userinfo_set($user_name, $field, $form->field($field)) ||
error("failed to set $field");
}

5
debian/changelog vendored
View File

@ -19,8 +19,9 @@ ikiwiki (2.20) UNRELEASED; urgency=low
via `<TMPL_VAR raw_variable>`.
* When htmlizing text, if the input is a single line with no newline,
and the htmlizer (such as markdown and textile) generates a html
paragraph, remove it. This allows removing several hacks around this
markdown behavior from other plugins that htmlize fragements of pages.
paragraph, remove it. This allows removing several hacks from other
plugins that htmlize fragements of pages.
* In preferences, allow the subscriptions and email fields to be cleared.
-- Joey Hess <joeyh@debian.org> Wed, 09 Jan 2008 00:34:46 -0500

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-01-09 14:31-0500\n"
"POT-Creation-Date: 2008-01-09 14:43-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -648,7 +648,7 @@ msgstr ""
#. translators: preprocessor directive name,
#. translators: the second a page name, the
#. translators: third a number.
#: ../IkiWiki.pm:722
#: ../IkiWiki.pm:732
#, perl-format
msgid "%s preprocessing loop detected on %s at depth %i"
msgstr ""