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

[ljcom] r12663: LJSUP-13676. Minor fix

Committer: wisest-owl
LJSUP-13676. Minor fix

U   trunk/cgi-bin/phonepost.pl
Modified: trunk/cgi-bin/phonepost.pl
===================================================================
--- trunk/cgi-bin/phonepost.pl	2012-09-18 08:49:21 UTC (rev 12662)
+++ trunk/cgi-bin/phonepost.pl	2012-09-18 09:24:10 UTC (rev 12663)
@@ -71,7 +71,7 @@
     unless ($ppe && $ppe->{jitemid} && $ppe->{anum} == $dppid % 256) {
         LJ::Request->pnotes ('error' => 'e404');
         LJ::Request->pnotes ('remote' => LJ::get_remote());
-        return LJ::Request::NOT_FOUND;
+        return LJ::Request::NOT_FOUND();
     }
 
     # check security of item
@@ -79,7 +79,7 @@
     unless ($logrow) {
         LJ::Request->pnotes ('error' => 'e404');
         LJ::Request->pnotes ('remote' => LJ::get_remote());
-        return LJ::Request::NOT_FOUND;
+        return LJ::Request::NOT_FOUND();
     }
 
     if ($u->{statusvis} eq 'S' || $logrow->{security} ne "public") {
@@ -103,7 +103,7 @@
             unless (LJ::can_view($remote, $logrow)) {
                 LJ::Request->pnotes ('error' => 'private');
                 LJ::Request->pnotes ('remote' => LJ::get_remote());
-                return LJ::Request::FORBIDDEN;
+                return LJ::Request::FORBIDDEN();
             }
         }
     }
@@ -150,7 +150,7 @@
             unless ($buffer && ref $buffer) {
                 LJ::Request->pnotes ('error' => 'e500');
                 LJ::Request->pnotes ('remote' => LJ::get_remote());
-                return LJ::Request::SERVER_ERROR;
+                return LJ::Request::SERVER_ERROR();
             }
             LJ::Request->print($$buffer);
         }
@@ -171,7 +171,7 @@
         unless ($ret) {
             LJ::Request->pnotes ('error' => 'e500');
             LJ::Request->pnotes ('remote' => LJ::get_remote());
-            return LJ::Request::SERVER_ERROR;
+            return LJ::Request::SERVER_ERROR();
         }
     }
 

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