mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Removed non-functional "close popup" link from profile editing in CMS (fixes #7343)
This commit is contained in:
parent
607a9e2f45
commit
69fbdad722
@ -1493,11 +1493,7 @@ class Member_ProfileForm extends Form {
|
||||
$form->saveInto($member);
|
||||
$member->write();
|
||||
|
||||
$closeLink = sprintf(
|
||||
'<small><a href="' . $_SERVER['HTTP_REFERER'] . '" onclick="javascript:window.top.GB_hide(); return false;">(%s)</a></small>',
|
||||
_t('ComplexTableField.CLOSEPOPUP', 'Close Popup')
|
||||
);
|
||||
$message = _t('Member.PROFILESAVESUCCESS', 'Successfully saved.') . ' ' . $closeLink;
|
||||
$message = _t('Member.PROFILESAVESUCCESS', 'Successfully saved.');
|
||||
$form->sessionMessage($message, 'good');
|
||||
|
||||
$this->controller->redirectBack();
|
||||
|
Loading…
x
Reference in New Issue
Block a user