Committer: wisest-owl
LJSUP-13676. Minor fixU 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(); } }