[Slashdotjp-dev 1110] [637] * Add number of display journal count to _printHead() on Journal.pm

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 5月 9日 (金) 15:16:22 JST


Revision: 637
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=637
Author:   tach
Date:     2008-05-09 15:16:21 +0900 (Fri, 09 May 2008)

Log Message:
-----------
 * Add number of display journal count to _printHead() on Journal.pm
   - You can use 'jcount' variable journalhead;journal template

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/debian/changelog
    slashjp/branches/2.5.0.192/plugins/Journal/journal.pl


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-05-09 04:29:23 UTC (rev 636)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-05-09 06:16:21 UTC (rev 637)
@@ -5,8 +5,10 @@
     - force mobile mode when the user-agent matches "mobile_useragent_regex"
       or URL arg includes "m=1"
     - getCurrentUser('mobile') is true when mobile mode has been enabled
+  * Add number of display journal count to _printHead() on Journal.pm
+    - You can use 'jcount' variable journalhead;journal template
 
- -- Taku YASUI <tach****@osdn*****>  Thu,  8 May 2008 09:30:11 +0000
+ -- Taku YASUI <tach****@osdn*****>  Fri,  9 May 2008 06:13:59 +0000
 
 slash (2.5.0.192-11) unstable; urgency=low
 

Modified: slashjp/branches/2.5.0.192/plugins/Journal/journal.pl
===================================================================
--- slashjp/branches/2.5.0.192/plugins/Journal/journal.pl	2008-05-09 04:29:23 UTC (rev 636)
+++ slashjp/branches/2.5.0.192/plugins/Journal/journal.pl	2008-05-09 06:16:21 UTC (rev 637)
@@ -463,6 +463,7 @@
 	if (@$articles == 1) {
 	    $head_data->{html_title} = $articles->[0]->[2];
 	}
+	$head_data->{jcount} = scalar(@$articles);
 	_printHead('userhead', $head_data, 1) or return;
 
 	# check for extra articles ... we request one more than we need


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