Fixes a bug which doesn't allow User Triggers to be saved in settings

This commit is contained in:
Frank Dillon 2007-09-07 21:39:54 +00:00
parent 29f2018b6f
commit b74afadb9b

View file

@ -21,17 +21,18 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
fixUserTriggers($session);
recalculateThreadRatings($session);
finish($session); # this line required
##-------------------------------------------------
#sub exampleFunction {
# my $session = shift;
# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet);
# # and here's our code
#}
#---------------------------------------------------
sub fixUserTriggers($session) {
my $session = shift;
$session->setting->add("runOnAdminCreateUser","");
$session->setting->add("runOnAdminUpdateUser","");
}
#----------------------------------------------------------------------------
# Have Threads recalculate their own ratings