Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[ljcom] r11898: LJSUP-12095: Fix Response::CachedTemplat...

Committer: anazarov
LJSUP-12095: Fix Response::CachedTemplate class to work in non-web context
U   trunk/cgi-bin/LJ/Response/Error.pm
U   trunk/cgi-bin/LJ/Response/Redirect.pm
U   trunk/cgi-bin/LJ/Response.pm
Modified: trunk/cgi-bin/LJ/Response/Error.pm
===================================================================
--- trunk/cgi-bin/LJ/Response/Error.pm	2012-05-05 09:09:06 UTC (rev 11897)
+++ trunk/cgi-bin/LJ/Response/Error.pm	2012-05-05 09:30:59 UTC (rev 11898)
@@ -42,7 +42,7 @@
 
 sub http_status {
     my ($self) = @_;
-    return $self->status || LJ::Request::NOT_FOUND;
+    return $self->status || &LJ::Request::NOT_FOUND;
 }
 
 1;

Modified: trunk/cgi-bin/LJ/Response/Redirect.pm
===================================================================
--- trunk/cgi-bin/LJ/Response/Redirect.pm	2012-05-05 09:09:06 UTC (rev 11897)
+++ trunk/cgi-bin/LJ/Response/Redirect.pm	2012-05-05 09:30:59 UTC (rev 11898)
@@ -14,7 +14,7 @@
     my $status;
     if ( $self->mode && $self->mode eq 'internal' ) {
         LJ::Request->header_out( 'X-Accel-Redirect' => $self->where );
-        $status = LJ::Request::OK;
+        $status = &LJ::Request::OK;
     } else {
         $status = LJ::Request->redirect( $self->where );
     }

Modified: trunk/cgi-bin/LJ/Response.pm
===================================================================
--- trunk/cgi-bin/LJ/Response.pm	2012-05-05 09:09:06 UTC (rev 11897)
+++ trunk/cgi-bin/LJ/Response.pm	2012-05-05 09:30:59 UTC (rev 11898)
@@ -35,7 +35,7 @@
 }
 
 sub http_status {
-    return LJ::Request::OK;
+    return &LJ::Request::OK;
 }
 
 1;

Tags: anazarov, ljcom, nfokz, 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