From ea253f3fae2615a8b53e6e50786edf98e31ce084 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 31 Dec 2008 00:05:24 +0000 Subject: [PATCH] Really fix the database misspellings in the Account template settings. --- docs/changelog/7.x.x.txt | 1 + docs/upgrades/upgrade_7.6.7-7.6.8.pl | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 386065fcf..ddef11ece 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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. diff --git a/docs/upgrades/upgrade_7.6.7-7.6.8.pl b/docs/upgrades/upgrade_7.6.7-7.6.8.pl index 10c07cfba..7b158de53 100644 --- a/docs/upgrades/upgrade_7.6.7-7.6.8.pl +++ b/docs/upgrades/upgrade_7.6.7-7.6.8.pl @@ -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 {