move upgrade sub to correct version.
This commit is contained in:
parent
0cfa3f9edf
commit
2e4656931e
2 changed files with 11 additions and 11 deletions
|
|
@ -35,7 +35,6 @@ my $session = start(); # this line required
|
|||
addIndexToUserSessionLog($session);
|
||||
addHeightToCarousel($session);
|
||||
synchronizeUserProfileTables($session);
|
||||
addSpamStopWordsToConfig($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -49,16 +48,6 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
sub addSpamStopWordsToConfig {
|
||||
my $session = shift;
|
||||
print "\tAdd SPAM controls to config file... " unless $quiet;
|
||||
# and here's our code
|
||||
$session->config->set('spamStopWords', []);
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
sub addIndexToUserSessionLog {
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ my $quiet; # this line required
|
|||
my $session = start(); # this line required
|
||||
|
||||
# upgrade functions go here
|
||||
addSpamStopWordsToConfig($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -45,6 +46,16 @@ finish($session); # this line required
|
|||
#}
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
sub addSpamStopWordsToConfig {
|
||||
my $session = shift;
|
||||
print "\tAdd SPAM controls to config file... " unless $quiet;
|
||||
# and here's our code
|
||||
$session->config->set('spamStopWords', []);
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue