vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17663: LJSUP-7314: added flag to use new dev ta...

Committer: vsukhanov
LJSUP-7314: added flag to use new dev talkread2.bml
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2010-11-10 10:36:03 UTC (rev 17662)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2010-11-10 10:51:06 UTC (rev 17663)
@@ -905,6 +905,10 @@
             LJ::Request->pnotes ('remote' => LJ::get_remote());
             return LJ::Request::NOT_FOUND;  # bogus ljconfig
         } else {
+            ##
+            my $u = LJ::load_user($user);
+            LJ::set_active_journal($u) if $u;
+
             my $view = $determine_view->($user, "users", $uri);
             return $view if defined $view;
             LJ::Request->pnotes ('error' => 'e404');
@@ -1609,9 +1613,12 @@
         }
 
         if ($RQ{'mode'} eq "entry" || $RQ{'mode'} eq "reply") {
-            my $filename = $RQ{'mode'} eq "entry" ?
-                "$LJ::HOME/htdocs/talkread.bml" :
-                "$LJ::HOME/htdocs/talkpost.bml";
+            my $filename = $RQ{'mode'} eq "entry" 
+                ? ( $GET{talkread2}
+                    ? "$LJ::HOME/htdocs/talkread2.bml"
+                    : "$LJ::HOME/htdocs/talkread.bml"
+                )
+                : "$LJ::HOME/htdocs/talkpost.bml";
             LJ::Request->notes("_journal" => $RQ{'user'});
             LJ::Request->notes("bml_filename" => $filename);
             return Apache::BML::handler();

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