Replaced the account.options loop in the displayAccount auth methods with new macros for displaying deactivate account and back to site links. Another macro which allows text to be displayed according to whether the value passed in is empty or not was added to allow functionality similar to that which currently exists.

This commit is contained in:
Frank Dillon 2008-11-18 07:05:23 +00:00
parent d91bc5754d
commit 32979d75e1
13 changed files with 175 additions and 82 deletions

View file

@ -383,6 +383,12 @@ sub upgradeAccount {
}
$session->config->set( "contentHandlers", \@newHandlers );
}
#Add new macros to the config file
$session->config->addToHash("macros","BackToSite","BackToSite");
$session->config->addToHash("macros","HasValueText","HasValueText");
$session->config->addToHash("macros","DeactivateAccount","DeactivateAccount");
#Add the settings for the profile module
$setting->add("profileStyleTemplateId",""); #Use the userStyle by default