vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r16138: LJSUP-5445: provide default 'is_inited' ...

Committer: vsukhanov
LJSUP-5445: provide default 'is_inited' method in LJ::Request when no one driver is loaded.
U   trunk/cgi-bin/LJ/Request.pm
Modified: trunk/cgi-bin/LJ/Request.pm
===================================================================
--- trunk/cgi-bin/LJ/Request.pm	2010-01-26 05:06:41 UTC (rev 16137)
+++ trunk/cgi-bin/LJ/Request.pm	2010-01-26 08:02:50 UTC (rev 16138)
@@ -9,6 +9,8 @@
         require LJ::Request::Apache2;
     } elsif($ENV{MOD_PERL_API_VERSION} or $ENV{MOD_PERL}) {
         require LJ::Request::Apache;
+    } else {
+        *LJ::Request::is_inited = sub { 0 };
     }
 }
 

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