Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r19325: LJSUP-9099: Some problems with language ...

Committer: gariev
LJSUP-9099: Some problems with language of variable when viewing community as non-authorized user

U   trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2011-06-20 08:31:35 UTC (rev 19324)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2011-06-20 08:55:43 UTC (rev 19325)
@@ -20,6 +20,7 @@
     # get user
     my $remote = LJ::get_remote();
     my $is_remote_sup = LJ::SUP->is_remote_sup();
+    my $journalu = LJ::get_active_journal();
 
     my $get_user = sub {
         # three ways to load a user:
@@ -140,7 +141,7 @@
     foreach my $key (@ml_keys) {
         $ret{"ml_$key"} = $ML{".$key"};
     }
-    if ($u->is_community) {
+    if ($journalu && $journalu->is_community) {
         $ret{'ml_filter_by_poster_me'}  = $ML{'ml_filter_by_poster_me'};
         $ret{'ml_filter_by_poster'}     = $ML{'ml_filter_by_poster'};
     }

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