Skip to content
Extraits de code Groupes Projets
Valider 5a6ebc83 rédigé par Alexandre Morignot's avatar Alexandre Morignot
Parcourir les fichiers

when a content is posted, get the tags in all cases

parent f64eb142
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -85,20 +85,20 @@ sub parse {
or $log->error("Couldn't finish transaction: " . $dbh->errstr);
$id = $sth->fetch->[0];
}
# get tags
$sth = $dbh->prepare("select tag
from playbot_tags
where id = ?
# get tags
$sth = $dbh->prepare("select tag
from playbot_tags
where id = ?
");
$sth->execute($id);
$sth->execute($id);
while (my $data = $sth->fetch) {
my $tag = $data->[0];
$tag =~ s/([a-zA-Z0-9_-]+)/#$1/;
push @tags, $tag;
}
}
while (my $data = $sth->fetch) {
my $tag = $data->[0];
$tag =~ s/([a-zA-Z0-9_-]+)/#$1/;
push @tags, $tag;
}
# insertion du chan
my $sth = $dbh->prepare_cached('
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter