[biography] add logging
This commit is contained in:
parent
1ed6704e19
commit
bd3c6647af
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ class Biography extends Extension
|
||||||
{
|
{
|
||||||
global $page, $user, $user_config;
|
global $page, $user, $user_config;
|
||||||
if ($event->page_matches("biography", method: "POST")) {
|
if ($event->page_matches("biography", method: "POST")) {
|
||||||
$user_config->set_string("biography", $event->get_POST('biography'));
|
$bio = $event->get_POST('biography');
|
||||||
|
log_info("biography", "Set biography to $bio");
|
||||||
|
$user_config->set_string("biography", $bio);
|
||||||
$page->flash("Bio Updated");
|
$page->flash("Bio Updated");
|
||||||
$page->set_mode(PageMode::REDIRECT);
|
$page->set_mode(PageMode::REDIRECT);
|
||||||
$page->set_redirect(referer_or(make_link()));
|
$page->set_redirect(referer_or(make_link()));
|
||||||
|
|
Reference in a new issue