Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r12656: LJSUP-13609 (FriendsPage redesign)

Committer: ailyin
LJSUP-13609 (FriendsPage redesign)
U   trunk/cgi-bin/LJ/Controller.pm
U   trunk/cgi-bin/LJ/SiteScheme/Lanzelot.pm
Modified: trunk/cgi-bin/LJ/Controller.pm
===================================================================
--- trunk/cgi-bin/LJ/Controller.pm	2012-09-17 11:00:17 UTC (rev 12655)
+++ trunk/cgi-bin/LJ/Controller.pm	2012-09-17 14:31:48 UTC (rev 12656)
@@ -53,4 +53,15 @@
     }
 } # error
 
+sub check_domain_session {
+    my $redir_url;
+
+    my $session = LJ::Session->session_from_cookies(
+        'redirect_ref' => \$redir_url );
+
+    if ( !$session && $redir_url ) {
+        return LJ::Response::Redirect->new( 'where' => $redir_url );
+    }
+}
+
 1;

Modified: trunk/cgi-bin/LJ/SiteScheme/Lanzelot.pm
===================================================================
--- trunk/cgi-bin/LJ/SiteScheme/Lanzelot.pm	2012-09-17 11:00:17 UTC (rev 12655)
+++ trunk/cgi-bin/LJ/SiteScheme/Lanzelot.pm	2012-09-17 14:31:48 UTC (rev 12656)
@@ -60,8 +60,11 @@
 
     $reskining_html ||= '';
 
-    my $body_class =
-        LJ::get_body_class_for_service_pages( 'classes' => ['s-lanzelot'] );
+    my $additional_body_classes = $args->{'body_classes'} || [];
+
+    my $body_class = LJ::get_body_class_for_service_pages(
+        'classes' => [ 's-lanzelot', @$additional_body_classes ] );
+
     $body_class ||= '';
 
     if ( $class->show_mobile_link ) {

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