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:
parent
d91bc5754d
commit
32979d75e1
13 changed files with 175 additions and 82 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue