Skip to content

Commit

Permalink
Add article_nocomment
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed May 13, 2002
1 parent 59c96cc commit d65896f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions sql/mysql/defaults.sql
Expand Up @@ -369,6 +369,7 @@ INSERT INTO vars (name, value, description) VALUES ('approvedtags_break','P|LI|O
INSERT INTO vars (name, value, description) VALUES ('archive_delay','60','days to wait for story archiving');
INSERT INTO vars (name, value, description) VALUES ('archive_use_backup_db', '0', 'Should the archival process retrieve data from the backup database?');
INSERT INTO vars (name, value, description) VALUES ('articles_only','0','show only Articles in submission count in admin menu');
INSERT INTO vars (name, value, description) VALUES ('article_nocomment','0','Show no comments in article.pl');
INSERT INTO vars (name, value, description) VALUES ('authors_unlimited','100','Seclev for which authors have unlimited moderation');
INSERT INTO vars (name, value, description) VALUES ('backup_db_user','','The virtual user of the database that the code should use for intensive database access that may bring down the live site. If you don\'t know what this is for, you should leave it blank.');
INSERT INTO vars (name, value, description) VALUES ('badkarma','-10','Users get penalized for posts if karma is below this value');
Expand Down
5 changes: 4 additions & 1 deletion themes/slashcode/htdocs/article.pl
Expand Up @@ -72,7 +72,10 @@ sub main {
my $discussion = $slashdb->getDiscussionBySid($story->{sid});
# This is to get tid in comments. It would be a mess to pass it directly to every comment -Brian
$user->{state}{tid} = $discussion->{topic};
printComments($discussion);
# this should really be done per-story, perhaps with article_nocomment
# being a default for the story editor instead of being system-wide; that feature
# has been begun, but doesn't work -- pudge
printComments($discussion) unless $constants->{article_nocomment};
} else {
my $message = getData('no_such_sid');
header($message, $form->{section});
Expand Down
1 change: 0 additions & 1 deletion themes/slashcode/templates/header;misc;admin
Expand Up @@ -2,7 +2,6 @@ __section__
admin
__description__
This is the header for the admin section

__title__

__page__
Expand Down

0 comments on commit d65896f

Please sign in to comment.