alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r21616: OPSC-427: Close "Games" at all

Committer: afedorov
OPSC-427: Close "Games" at all

U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-03-30 14:49:41 UTC (rev 21615)
+++ trunk/cgi-bin/cleanhtml.pl	2012-03-30 14:50:51 UTC (rev 21616)
@@ -736,7 +736,7 @@
             }
             elsif ($tag eq "lj-app")
             {
-                next TOKEN if $LJ::DISABLED{'userapps'};
+                next TOKEN unless LJ::is_enabled('userapps');
                 my %app_attr = map { $_ => Encode::encode_utf8($attr->{$_}) } keys %$attr;
                 my $app = LJ::UserApps->get_application( id => delete $app_attr{id}, key => delete $app_attr{key} );
                 next TOKEN unless $app && $app->can_show_restricted;

Tags: afedorov, livejournal, pl, red_alf
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