diff options
author | travis%sedsystems.ca <> | 2005-01-19 01:53:50 +0100 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-01-19 01:53:50 +0100 |
commit | 014b25fed9a4a44963c63582b177fd8ac0ea438f (patch) | |
tree | 0a0e004fab30a94cb60462314536590567ae02de /query.cgi | |
parent | 47552954db6be6abcf3c27339fdb1063637c0066 (diff) | |
download | bugzilla-014b25fed9a4a44963c63582b177fd8ac0ea438f.tar.gz bugzilla-014b25fed9a4a44963c63582b177fd8ac0ea438f.tar.xz |
Bug 276840 : Move $::defaultqueryname out of globals.pl into Bugzilla/Constants.pm
Patch by Max K-A <mkanat@kerio.com> r=vladd a=justdave
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -76,7 +76,7 @@ if ($userid) { } } if (defined $cgi->cookie('DEFAULTQUERY')) { - push(@oldquerycookies, [$::defaultqueryname, 'DEFAULTQUERY', + push(@oldquerycookies, [DEFAULT_QUERY_NAME, 'DEFAULTQUERY', $cgi->cookie('DEFAULTQUERY')]); } if (@oldquerycookies) { @@ -104,7 +104,7 @@ if ($userid) { if ($::FORM{'nukedefaultquery'}) { if ($userid) { SendSQL("DELETE FROM namedqueries " . - "WHERE userid = $userid AND name = '$::defaultqueryname'"); + "WHERE userid = $userid AND name = " . SqlQuote(DEFAULT_QUERY_NAME)); } $::buffer = ""; } @@ -112,7 +112,7 @@ if ($::FORM{'nukedefaultquery'}) { my $userdefaultquery; if ($userid) { SendSQL("SELECT query FROM namedqueries " . - "WHERE userid = $userid AND name = '$::defaultqueryname'"); + "WHERE userid = $userid AND name = " . SqlQuote(DEFAULT_QUERY_NAME)); $userdefaultquery = FetchOneColumn(); } @@ -391,7 +391,7 @@ $default{'charts'} = \@charts; if ($userid) { my @namedqueries; SendSQL("SELECT name FROM namedqueries " . - "WHERE userid = $userid AND name != '$::defaultqueryname' " . + "WHERE userid = $userid AND name != " . SqlQuote(DEFAULT_QUERY_NAME) . "ORDER BY name"); while (MoreSQLData()) { push(@namedqueries, FetchOneColumn()); |