changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r19352: OPSLJ-403 mods to support header files c...

Committer: ldoolan
OPSLJ-403 mods to support header files concatenation as ESI includes
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2011-06-23 10:01:55 UTC (rev 19351)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2011-06-23 14:29:30 UTC (rev 19352)
@@ -20,6 +20,7 @@
                       Apache::LiveJournal::Interface::AtomAPI
                       Apache::LiveJournal::Interface::S2
                       Apache::LiveJournal::Interface::ElsewhereInfo
+                      Apache::LiveJournal::ConcatHeadFiles
                       Apache::LiveJournal::PalImg
                       Apache::LiveJournal::Interface::Api
                       LJ::ModuleCheck
@@ -1017,6 +1018,15 @@
         return $view if defined $view;
     }
 
+    # header file concatenation
+    my $unParsedURI= LJ::Request->r->unparsed_uri();
+    if ($unParsedURI =~ /\?\?/) {
+        Apache::LiveJournal::ConcatHeadFiles->load;
+        LJ::Request->handler("perl-script");
+        LJ::Request->set_handlers(PerlHandler => \&Apache::LiveJournal::ConcatHeadFiles::handler);
+        return LJ::Request::OK;
+    }
+
     # custom interface handler
     if ($uri =~ m!^/interface/([\w\-]+)$!) {
         my $inthandle = LJ::run_hook("interface_handler", {

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