Author: WillNorris
Date: 2005-05-26 00:34:44 -0700 (Thu, 26 May 2005)
New Revision: 4328
Modified:
twiki/branches/DEVELOP/lib/TWiki/Plugins/PreferencesPlugin.pm
Log:
CleanApacheErrorLog: was producing warnings in apache's error_log like:
[Wed May 25 18:03:28 2005] view.cgi: Possible unintended interpolation of @fld in string at /home/.galateadryer/twikizen/kupu.skyloom.com/cgi-bin/lib/TWiki/Plugins/PreferencesPlugin.pm line 254.
this looks like some sort of typo, TWiki:Main.ThomasWeigert, please double check my "fix"
Modified: twiki/branches/DEVELOP/lib/TWiki/Plugins/PreferencesPlugin.pm
===================================================================
--- twiki/branches/DEVELOP/lib/TWiki/Plugins/PreferencesPlugin.pm 2005-05-26 07:11:10 UTC (rev 4327)
+++ twiki/branches/DEVELOP/lib/TWiki/Plugins/PreferencesPlugin.pm 2005-05-26 07:34:44 UTC (rev 4328)
@@ -251,8 +251,7 @@
my $ifFormat = TWiki::Func::getPreferencesValue("JSCALENDARDATEFORMAT", "$web") || "%d %b %Y";
my $ifOptions = TWiki::Func::getPreferencesValue("JSCALENDAROPTIONS", "$web") || "";
my $size = 10 if ($size < 1);
- $text .= "<input type=\"text\" name=\"$name\" id=\"id$name\"size=\"# my @fld = @{$fields{$name}};
-$size\" value=\"$value\" /><button type=\"reset\" id=\"trigger$name\">...</button><script type=\"text/javascript\">Calendar.setup({inputField : \"id$name\", ifFormat : \"$ifFormat\", button : \"trigger$name\", singleClick : true $ifOptions });</script>";
+ $text .= "<input type=\"text\" name=\"$name\" id=\"id$name\"size=\"$size\" value=\"$value\" /><button type=\"reset\" id=\"trigger$name\">...</button><script type=\"text/javascript\">Calendar.setup({inputField : \"id$name\", ifFormat : \"$ifFormat\", button : \"trigger$name\", singleClick : true $ifOptions });</script>";
$query->{'jscalendar'} = 1;
} else {
# Treat like text, make it reasonably long
|