Item9032: Inconsistent use of plugin setting
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
The plugin setting
NEWUSERTEMPLATE
is not checked if it's used in the form
NEWUSERPLUGIN_NEWUSERTEMPLATE
, e.g. in
SitePreferences. I did the following adjustment to NewUserPlugin.pm which should be backwards compatible:
--- NewUserPlugin.pm.orig 2009-11-17 19:06:08.000000000 +0100
+++ NewUserPlugin.pm 2010-05-17 18:35:34.000000000 +0200
@@ -110,7 +110,9 @@
my $systemWeb = $Foswiki::cfg{SystemWebName};
my $usersWeb = $Foswiki::cfg{UsersWebName};
my $newUserTemplate =
- Foswiki::Func::getPreferencesValue('NEWUSERTEMPLATE') || 'NewUserTemplate';
+ Foswiki::Func::getPreferencesValue('NEWUSERPLUGIN_NEWUSERTEMPLATE') ||
+ Foswiki::Func::getPreferencesValue('NEWUSERTEMPLATE') ||
+ 'NewUserTemplate';
my $tmplTopic;
my $tmplWeb;
--
MartinKaufmann - 17 May 2010
There's no such setting NEWUSERPLUGIN_NEWUSERTEMPLATE. Use NEWUSERTEMPLATE only.
--
MichaelDaum - 27 Feb 2013