summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2004-03-18 12:57:04 +0100
committerjustdave%syndicomm.com <>2004-03-18 12:57:04 +0100
commit3d59b2bd807ec35c511fd76df11b2cbb61289242 (patch)
treef3071da3563a70dd4c88ea0fa5505eef4baf4385 /userprefs.cgi
parent962c6c28c25c354d7b3757f1b3cb3665cbde14b0 (diff)
downloadbugzilla-3d59b2bd807ec35c511fd76df11b2cbb61289242.tar.gz
bugzilla-3d59b2bd807ec35c511fd76df11b2cbb61289242.tar.xz
Bug 192516: Moving the loose .pm files into the Bugzilla directory, where they belong. These files pre-date the Bugzilla directory, and would have gone there had it existed at the time. The four files in question were copied on the CVS server to preserve CVS history in the files. This checkin deletes them from the old location and modifies everything else to know where they are now.
r= myk, gerv a= justdave
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi14
1 files changed, 7 insertions, 7 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index f2b9445ed..5466c80cc 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -29,7 +29,7 @@ use Bugzilla;
require "CGI.pl";
-use RelationSet;
+use Bugzilla::RelationSet;
# Use global template variables.
use vars qw($template $vars $userid);
@@ -121,9 +121,9 @@ sub SaveAccount {
$cgi->param('Bugzilla_password')
|| ThrowCodeError("old_password_required");
- use Token;
+ use Bugzilla::Token;
# Block multiple email changes for the same user.
- if (Token::HasEmailChangeToken($userid)) {
+ if (Bugzilla::Token::HasEmailChangeToken($userid)) {
ThrowUserError("email_change_in_progress");
}
@@ -133,7 +133,7 @@ sub SaveAccount {
ValidateNewUser($new_login_name)
|| ThrowUserError("account_exists", {email => $new_login_name});
- Token::IssueEmailChangeToken($userid,$old_login_name,
+ Bugzilla::Token::IssueEmailChangeToken($userid,$old_login_name,
$new_login_name);
$vars->{'email_changes_saved'} = 1;
@@ -148,7 +148,7 @@ sub SaveAccount {
sub DoEmail {
if (Param("supportwatchers")) {
- my $watcheduserSet = new RelationSet;
+ my $watcheduserSet = new Bugzilla::RelationSet;
$watcheduserSet->mergeFromDB("SELECT watched FROM watch WHERE" .
" watcher=$userid");
$vars->{'watchedusers'} = $watcheduserSet->toString();
@@ -246,12 +246,12 @@ sub SaveEmail {
SendSQL("LOCK TABLES watch WRITE, profiles READ");
# what the db looks like now
- my $origWatchedUsers = new RelationSet;
+ my $origWatchedUsers = new Bugzilla::RelationSet;
$origWatchedUsers->mergeFromDB("SELECT watched FROM watch WHERE" .
" watcher=$userid");
# Update the database to look like the form
- my $newWatchedUsers = new RelationSet($cgi->param('watchedusers'));
+ my $newWatchedUsers = new Bugzilla::RelationSet($cgi->param('watchedusers'));
my @CCDELTAS = $origWatchedUsers->generateSqlDeltas(
$newWatchedUsers,
"watch",