[livejournal] r19299: LJSUP-8584 (ONTD: Top tags for month): d...
Committer: ailyin
LJSUP-8584 (ONTD: Top tags for month): default to all tags in case tag_cloud_tags is undefinedU trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm 2011-06-16 04:25:39 UTC (rev 19298)
+++ trunk/cgi-bin/LJ/S2.pm 2011-06-16 05:11:54 UTC (rev 19299)
@@ -4282,9 +4282,7 @@
my $tags;
my $tag_cloud_tags = $ctx->[S2::PROPS]->{'tag_cloud_tags'};
- if ( $tag_cloud_tags eq 'all' ) {
- $tags = LJ::Tags::get_usertags($u, { remote => $remote });
- } else {
+ if ( $tag_cloud_tags eq 'recent' ) {
my $propval = $u->prop('recent_logtags');
return [] unless $propval;
@@ -4295,6 +4293,8 @@
};
return [] unless $parse_result;
+ } else {
+ $tags = LJ::Tags::get_usertags($u, { remote => $remote });
}
return [] unless $tags;
