mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-03-29 04:39 am

[dw-free] Webserver error logs

[commit: http://hg.dwscoalition.org/dw-free/rev/9329bc88ed82]

http://bugs.dwscoalition.org/show_bug.cgi?id=548

Fix undefined property warnings.

Patch by [personal profile] exor674.

Files modified:
  • cgi-bin/LJ/Setting/EmbedPlaceholders.pm
  • cgi-bin/LJ/Setting/EntryEditor.pm
  • cgi-bin/LJ/Setting/ImagePlaceholders.pm
--------------------------------------------------------------------------------
diff -r 0362862d60c3 -r 9329bc88ed82 cgi-bin/LJ/Setting/EmbedPlaceholders.pm
--- a/cgi-bin/LJ/Setting/EmbedPlaceholders.pm	Sun Mar 29 04:28:20 2009 +0000
+++ b/cgi-bin/LJ/Setting/EmbedPlaceholders.pm	Sun Mar 29 04:39:20 2009 +0000
@@ -25,7 +25,7 @@ sub option {
     my ($class, $u, $errs, $args) = @_;
     my $key = $class->pkgkey;
 
-    my $embedplaceholders = $class->get_arg($args, "embedplaceholders") || $u->prop("opt_embedplaceholders") eq "Y";
+    my $embedplaceholders = $class->get_arg($args, "embedplaceholders") || ( $u->prop("opt_embedplaceholders") || "" ) eq "Y";
 
     my $ret = LJ::html_check({
         name => "${key}embedplaceholders",
diff -r 0362862d60c3 -r 9329bc88ed82 cgi-bin/LJ/Setting/EntryEditor.pm
--- a/cgi-bin/LJ/Setting/EntryEditor.pm	Sun Mar 29 04:28:20 2009 +0000
+++ b/cgi-bin/LJ/Setting/EntryEditor.pm	Sun Mar 29 04:39:20 2009 +0000
@@ -25,7 +25,7 @@ sub option {
     my ($class, $u, $errs, $args) = @_;
     my $key = $class->pkgkey;
 
-    my $editor = $class->get_arg($args, "entryeditor") || $u->prop("entry_editor");
+    my $editor = $class->get_arg($args, "entryeditor") || $u->prop("entry_editor") || "";
 
     my $ret;
     $ret .= LJ::html_check({
diff -r 0362862d60c3 -r 9329bc88ed82 cgi-bin/LJ/Setting/ImagePlaceholders.pm
--- a/cgi-bin/LJ/Setting/ImagePlaceholders.pm	Sun Mar 29 04:28:20 2009 +0000
+++ b/cgi-bin/LJ/Setting/ImagePlaceholders.pm	Sun Mar 29 04:39:20 2009 +0000
@@ -25,8 +25,8 @@ sub option {
     my ($class, $u, $errs, $args) = @_;
     my $key = $class->pkgkey;
 
-    my $imgplaceholders = $class->get_arg($args, "imgplaceholders") || $u->prop("opt_imagelinks");
-    my $imgplaceundef = $class->get_arg( $args, "imgplaceundef" ) || $u->prop( "opt_imageundef" );
+    my $imgplaceholders = $class->get_arg($args, "imgplaceholders") || $u->prop("opt_imagelinks") || "";
+    my $imgplaceundef = $class->get_arg( $args, "imgplaceundef" ) || $u->prop( "opt_imageundef" ) || "";
 
     my ($maxwidth, $maxheight) = (0, 0);
     ($maxwidth, $maxheight) = ($1, $2)
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org