Skip to content

Commit

Permalink
Reversed the create options.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAker committed Sep 25, 2002
1 parent 42db96d commit 1de9f1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/Stats/Stats.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sub new {
? $options->{day}
: sprintf("%4d-%02d-%02d", $yest_lt[5] + 1900, $yest_lt[4] + 1, $yest_lt[3]);

unless ($options->{use_current}) {
if ($options->{create}) {
$self->sqlDo("DROP TABLE IF EXISTS accesslog_temp");
my $sth = $self->{_dbh}->prepare("SHOW CREATE TABLE accesslog");
$sth->execute();
Expand Down
4 changes: 2 additions & 2 deletions plugins/Stats/adminmail.pl
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
my $statsSave = getObject('Slash::Stats::Writer', '', { day => $yesterday });
# This will need to be changed to "log_db_user"
if ($constants->{backup_db_user}) {
$stats = getObject('Slash::Stats', $constants->{backup_db_user}, { day => $yesterday });
$stats = getObject('Slash::Stats', $constants->{backup_db_user}, { day => $yesterday, create => 1 });
$backupdb = getObject('Slash::DB', $constants->{backup_db_user});
} else {
$stats = getObject('Slash::Stats');
$stats = getObject('Slash::Stats', "", { day => $yesterday, create => 1 });
$backupdb = $slashdb;
}

Expand Down

0 comments on commit 1de9f1c

Please sign in to comment.