Changeset 24
- Timestamp:
- 08/30/09 01:12:17 (1 year ago)
- Files:
-
- trunk/index.cgi (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/index.cgi
r23 r24 19 19 my $captcha_seckey = ''; 20 20 my $comment_max_length = '1000'; 21 my $comments_allowed = 0; 21 22 22 23 … … 30 31 output_rss(); 31 32 } else { 32 read_comment() ;33 read_comment() if $comments_allowed; 33 34 my $articles = get_articles(); 34 35 my $archives = get_archives(); … … 39 40 if (@{$articles}) { 40 41 $template->param( articles => $articles ); 41 if ($cgi->param('uri') ) {42 if ($cgi->param('uri') && $comments_allowed) { 42 43 $template->param( comment_form => 1 ); 43 44 $template->param( comment_max_length => $comment_max_length );
