Permalink
Browse files

Misc. thingys

  • Loading branch information...
1 parent b22765e commit b057e39180d4b41d16fd3b5c47cb746d724bfad5 @pudge pudge committed Aug 12, 2004
Showing with 7 additions and 4 deletions.
  1. +4 −2 Slash/DB/MySQL/MySQL.pm
  2. +1 −0 Slash/DB/Static/MySQL/MySQL.pm
  3. +2 −2 themes/slashcode/htdocs/article.pl
View
@@ -2300,8 +2300,9 @@ sub getDB {
} # end closure surrounding getDBs and getDB
+#################################################################
sub getDBVirtualUsers {
- my ($self) = @_;
+ my($self) = @_;
return $self->sqlSelectColArrayref('virtual_user', 'dbs')
}
@@ -2994,7 +2995,8 @@ sub saveTopic {
errorLog("$DBI::errstr");
# only try a few times before giving up
# Don't we want to return false on failure? - Jamie
- return -1 if ++$tries > 5;
+ # i copied it from createComment ... but you're right i think -- pudge
+ return 0 if ++$tries > 5;
goto RETRY;
}
}
@@ -53,6 +53,7 @@ sub sqlShowSlaveStatus {
return $statlist;
}
+########################################################
sub showQueryCount {
my ($self) = @_;
$self->sqlConnect();
@@ -122,8 +122,8 @@ sub main {
my $meta_desc = "$story->{title} -- article related to $a.";
header($links, $story->{section}, {
- story_title => $story->{title},
- meta_desc => $meta_desc,
+ story_title => $story->{title},
+ meta_desc => $meta_desc,
}) or return;
# Can't do this before getStoryByTime because

0 comments on commit b057e39

Please sign in to comment.