[Slashdotjp-dev 1144] [671] * Fix to change commentsort for mobile mode from 5 to 4

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 6月 20日 (金) 22:09:33 JST


Revision: 671
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=671
Author:   tach
Date:     2008-06-20 22:09:33 +0900 (Fri, 20 Jun 2008)

Log Message:
-----------
 * Fix to change commentsort for mobile mode from 5 to 4
 * Make to change commentsort, commentmode and commentlimitfor mobile mode
   using constants
   - commentsort = mobile_commentsort
   - commentlimit = mobile_commentlimit
   - mode = mobile_commentmode

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm
    slashjp/branches/2.5.0.192/debian/changelog
    slashjp/branches/2.5.0.192/sql/mysql/defaults.sql


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm	2008-06-20 08:42:55 UTC (rev 670)
+++ slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm	2008-06-20 13:09:33 UTC (rev 671)
@@ -1643,9 +1643,9 @@
 
 		# settings for mobile mode
 		if ($user->{mobile}) {
-			$user->{mode} = 'flat'; # show flat
-			$user->{commentsort} = 5; # sorted by date desc
-			$user->{commentlimit} = 5; # comments per page
+			$user->{mode} = $constants->{mobile_commentmode} || 'flat'; # show flat
+			$user->{commentsort} = $constants->{mobile_commentsort} || 4; # sorted by date asc
+			$user->{commentlimit} = $constants->{mobile_commentlimit} || 5; # comments per page
 		}
 	}
 

Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-06-20 08:42:55 UTC (rev 670)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-06-20 13:09:33 UTC (rev 671)
@@ -1,3 +1,14 @@
+slash (2.5.0.192-14) unstable; urgency=low
+
+  * Fix to change commentsort for mobile mode from 5 to 4
+  * Make to change commentsort, commentmode and commentlimitfor mobile mode
+    using constants
+    - commentsort = mobile_commentsort
+    - commentlimit = mobile_commentlimit
+    - mode = mobile_commentmode
+
+ -- Taku YASUI <tach****@osdn*****>  Fri, 20 Jun 2008 13:06:35 +0000
+
 slash (2.5.0.192-13) unstable; urgency=low
 
   * Fix: linkStory() add '?m=1'

Modified: slashjp/branches/2.5.0.192/sql/mysql/defaults.sql
===================================================================
--- slashjp/branches/2.5.0.192/sql/mysql/defaults.sql	2008-06-20 08:42:55 UTC (rev 670)
+++ slashjp/branches/2.5.0.192/sql/mysql/defaults.sql	2008-06-20 13:09:33 UTC (rev 671)
@@ -1148,6 +1148,9 @@
 INSERT IGNORE INTO vars (name, value, description) VALUES ('mobile_encoding','utf8','Content encoding for mobile webpages (static html files)');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('mobile_staticdir','','Path for mobile static html files (disabled if empty)');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('mobile_urlpath','/m','URL path for mobile static html files');
+INSERT IGNORE INTO vars (name, value, description) VALUES ('mobile_commentsort','4','comment sort for mobile mode');
+INSERT IGNORE INTO vars (name, value, description) VALUES ('mobile_commentlimit','5','comment limit for mobile mode');
+INSERT IGNORE INTO vars (name, value, description) VALUES ('mobile_commentmode','flat','comment mode for mobile mode');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('enable_template_evalperl','0','Add "EVAL_PERL" to Template option to be able to use "PERL" and "RAWPERL" directives');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('related_cid_disabled','0','If set, then disable inserting cid to related story list');
 UPDATE vars SET value='text/html; charset=UTF-8' WHERE name='content_type_webpage';


Slashdotjp-dev メーリングリストの案内
Back to archive index