From 3d59b2bd807ec35c511fd76df11b2cbb61289242 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Thu, 18 Mar 2004 11:57:04 +0000 Subject: 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 --- userprefs.cgi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'userprefs.cgi') 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", -- cgit v1.2.3-24-g4f1b