Committer: afedorov
OPSC-427: Close "Games" at allU 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;