svnno****@sourc*****
svnno****@sourc*****
2008年 10月 27日 (月) 18:11:23 JST
Revision: 801 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=801 Author: tach Date: 2008-10-27 18:11:23 +0900 (Mon, 27 Oct 2008) Log Message: ----------- Add pollquestions to page title and fix title format Modified Paths: -------------- slashjp/branches/2.5.0.192/debian/changelog slashjp/branches/2.5.0.192/plugins/PollBooth/pollBooth.pl -------------- next part -------------- Modified: slashjp/branches/2.5.0.192/debian/changelog =================================================================== --- slashjp/branches/2.5.0.192/debian/changelog 2008-10-23 11:52:44 UTC (rev 800) +++ slashjp/branches/2.5.0.192/debian/changelog 2008-10-27 09:11:23 UTC (rev 801) @@ -11,8 +11,9 @@ eligible * Fix unwanted object creation at plugin/Messages/Messages.pm * Create messages when the journal is submission + * Add pollquestions to page title and fix title format - -- Taku YASUI <tach****@osdn*****> Thu, 23 Oct 2008 07:56:51 +0000 + -- Taku YASUI <tach****@osdn*****> Mon, 27 Oct 2008 09:09:33 +0000 slash (2.5.0.192-20) unstable; urgency=low Modified: slashjp/branches/2.5.0.192/plugins/PollBooth/pollBooth.pl =================================================================== --- slashjp/branches/2.5.0.192/plugins/PollBooth/pollBooth.pl 2008-10-23 11:52:44 UTC (rev 800) +++ slashjp/branches/2.5.0.192/plugins/PollBooth/pollBooth.pl 2008-10-27 09:11:23 UTC (rev 801) @@ -58,8 +58,16 @@ undef $form->{aid} if $form->{aid} < -1 || $form->{aid} > 8; } - header(getData('title'), $form->{section}, { tab_selected => 'poll'}) or return; + # create title + my $title = getData('title'); + if ($form->{qid}) { + my $polldb = getObject('Slash::PollBooth', { db_type => 'reader' }); + $title .= ': ' . $polldb->getPollQuestion($form->{qid})->{question}; + } + $title .= " - $constants->{sitename}"; + header($title, $form->{section}, { tab_selected => 'poll'}) or return; + $ops{$op}->($form, $slashdb, $constants); writeLog($form->{'qid'});