madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r19399: Fix: Uninialized variables.

Committer: sbelyaev
Fix: Uninialized variables.
U   trunk/cgi-bin/LJ/S2/HeadContent.pm
Modified: trunk/cgi-bin/LJ/S2/HeadContent.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/HeadContent.pm	2011-06-29 08:38:37 UTC (rev 19398)
+++ trunk/cgi-bin/LJ/S2/HeadContent.pm	2011-06-30 02:41:07 UTC (rev 19399)
@@ -57,7 +57,9 @@
     my $head_content = '';
     my $base_url = $u->{'_journalbase'};
 
-    if ($LJ::UNICODE) {
+    if ( $LJ::UNICODE ) {
+        my $charset = $opts->{'saycharset'} || "utf-8";
+
         $head_content .= qq(<meta http-equiv="Content-Type" );
         $head_content .= qq(content="text/html;);
         $head_content .= qq(charset=$opts->{'saycharset'}" />\n);
@@ -190,8 +192,9 @@
     $head_content .= qq(/data/yadis/friends" />\n);
 
     my $get = $opts->{'getargs'};
+    my $mode = $get->{'mode'} || '';
 
-    if ( $get->{'mode'} eq "framed" ) {
+    if ( $mode eq "framed" ) {
         $head_content .= "<base target='_top' />";
     }
 

Tags: livejournal, madeon, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments