wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r16105:

Committer: gprochaev
U   branches/modernize2/cgi-bin/LJ/S2/EntryPage.pm
Modified: branches/modernize2/cgi-bin/LJ/S2/EntryPage.pm
===================================================================
--- branches/modernize2/cgi-bin/LJ/S2/EntryPage.pm	2010-01-19 10:12:55 UTC (rev 16104)
+++ branches/modernize2/cgi-bin/LJ/S2/EntryPage.pm	2010-01-19 11:20:00 UTC (rev 16105)
@@ -362,8 +362,7 @@
 
     my $get = $opts->{'getargs'};
 
-    my $r = $opts->{'r'};
-    my $uri = $r->uri;
+    my $uri = LJ::Request->uri;
 
     my ($ditemid, $itemid);
     my $entry = $opts->{ljentry};  # only defined in named-URI case.  otherwise undef.
@@ -404,8 +403,8 @@
             $opts->{'handler_return'} = 403;
             return;
         } else {
-            my $host = $r->header_in("Host");
-            my $args = scalar $r->args;
+            my $host = LJ::Request->header_in("Host");
+            my $args = scalar LJ::Request->args;
             my $querysep = $args ? "?" : "";
             my $redir = LJ::eurl("http://$host$uri$querysep$args");
             $opts->{'redir'} = "$LJ::SITEROOT/?returnto=$redir&errmsg=notloggedin";

Tags: livejournal, pm, wisest-owl
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