[Slashdotjp-dev 1247] [775] fix for mobile mode

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2008年 9月 26日 (金) 22:30:18 JST


Revision: 775
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=775
Author:   tach
Date:     2008-09-26 22:30:17 +0900 (Fri, 26 Sep 2008)

Log Message:
-----------
fix for mobile mode

Modified Paths:
--------------
    slashjp/tags/2.5.0.192-19/plugins/Journal/journal.pl


-------------- next part --------------
Modified: slashjp/tags/2.5.0.192-19/plugins/Journal/journal.pl
===================================================================
--- slashjp/tags/2.5.0.192-19/plugins/Journal/journal.pl	2008-09-26 13:23:38 UTC (rev 774)
+++ slashjp/tags/2.5.0.192-19/plugins/Journal/journal.pl	2008-09-26 13:30:17 UTC (rev 775)
@@ -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,


Slashdotjp-dev メーリングリストの案内
Zurück zum Archiv-Index