Really fix the database misspellings in the Account template settings.

This commit is contained in:
Colin Kuskie 2008-12-31 00:05:24 +00:00
parent 1e029c5c93
commit ea253f3fae
2 changed files with 20 additions and 0 deletions

View file

@ -18,6 +18,7 @@
- fixed #9367: Gallery: Errors in templates
- fixed #9352: Account activation message MIA
- fixed #9046: Wiki tabs all combined (David Delikat)
- refixed #9147: Misspellings in Account
7.6.7
- fixed #9263: Thingy possibleValues processing, and List type autodetection.

View file

@ -35,6 +35,7 @@ my $session = start(); # this line required
setDefaultItransactCredentialTemplate($session);
hideGalleryPhotos($session);
addSubscriptionRedeemTemplateSetting($session);
reFixAccountMisspellings($session);
finish($session); # this line required
@ -84,6 +85,24 @@ sub hideGalleryPhotos {
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
#Describe what our function does
sub reFixAccountMisspellings {
my $session = shift;
my $setting = $session->setting;
print "\tFix misspellings in Account settings... " unless $quiet;
# and here's our code
$setting->add("profileViewTemplateId", $setting->get('profileViewTempalteId') );
$setting->add("profileErrorTemplateId", $setting->get('profileErrorTempalteId') );
$setting->add("inboxLayoutTemplateId", $setting->get('inboxLayoutTempalteId') );
$setting->add("friendsLayoutTemplateId", $setting->get('friendsLayoutTempalteId'));
$setting->remove("profileViewTempalteId");
$setting->remove("profileErrorTempalteId");
$setting->remove("inboxLayoutTempalteId");
$setting->remove("friendsLayoutTempalteId");
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
#sub exampleFunction {