summaryrefslogtreecommitdiffstats
path: root/quips.cgi
diff options
context:
space:
mode:
authorSunil Joshi <joshi_sunil@in.com>2013-12-22 16:26:57 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-12-22 16:26:57 +0100
commit8fd4de3639d393feb37a1744d9a91e1a25119c5d (patch)
tree2725e748925cc6865bcd2fb13204b6eb6841288e /quips.cgi
parentec4862650f2da6ef3b0cdcb1ca135a64879c6b31 (diff)
downloadbugzilla-8fd4de3639d393feb37a1744d9a91e1a25119c5d.tar.gz
bugzilla-8fd4de3639d393feb37a1744d9a91e1a25119c5d.tar.xz
Bug 918013: Add Bugzilla messaging system in quips page
r=LpSolit a=justdave
Diffstat (limited to 'quips.cgi')
-rwxr-xr-xquips.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/quips.cgi b/quips.cgi
index 6ded45091..03fd49548 100755
--- a/quips.cgi
+++ b/quips.cgi
@@ -75,6 +75,7 @@ if ($action eq "add") {
undef, ($user->id, $comment, $approved));
$vars->{'added_quip'} = $comment;
+ $vars->{'message'} = 'quips_added';
}
if ($action eq 'approve') {
@@ -115,6 +116,7 @@ if ($action eq 'approve') {
join(",", @unapproved) . ")") if($#unapproved > -1);
$vars->{ 'approved' } = \@approved;
$vars->{ 'unapproved' } = \@unapproved;
+ $vars->{'message'} = 'quips_approved_unapproved';
}
if ($action eq "delete") {
@@ -130,6 +132,7 @@ if ($action eq "delete") {
"SELECT quip FROM quips WHERE quipid = ?",
undef, $quipid);
$dbh->do("DELETE FROM quips WHERE quipid = ?", undef, $quipid);
+ $vars->{'message'} = 'quips_deleted';
}
print $cgi->header();