svnno****@sourc*****
svnno****@sourc*****
2008年 9月 26日 (金) 22:23:38 JST
Revision: 774 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=774 Author: tach Date: 2008-09-26 22:23:38 +0900 (Fri, 26 Sep 2008) Log Message: ----------- fix for mobile mode Modified Paths: -------------- slashjp/branches/2.5.0.192/plugins/Journal/journal.pl -------------- next part -------------- Modified: slashjp/branches/2.5.0.192/plugins/Journal/journal.pl =================================================================== --- slashjp/branches/2.5.0.192/plugins/Journal/journal.pl 2008-09-26 06:18:32 UTC (rev 773) +++ slashjp/branches/2.5.0.192/plugins/Journal/journal.pl 2008-09-26 13:23:38 UTC (rev 774) @@ -587,11 +587,15 @@ push @sorted_articles, $collection; my $theme = _checkTheme($form->{theme} || $journal_reader->getUser($uid, 'journal_theme')); - $theme = 'mobile' if ($user->{mobile}); + my $theme_type = $journal_reader->getThemeType($theme); + if ($user->{mobile}) { + $theme = 'mobile'; + $theme_type = 'mobile'; + } my $show_discussion = $form->{id} && !$constants->{journal_no_comments_item} && $discussion; my $zoo = getObject('Slash::Zoo'); - slashDisplay('theme_'.$journal_reader->getThemeType($theme), { + slashDisplay("theme_$theme_type", { theme => $theme, articles => \@sorted_articles, uid => $uid,