mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Fixed i18n coding for LeftAndMain save and delete.
This commit is contained in:
parent
b65dff0fbe
commit
70a5b49dd6
@ -730,7 +730,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
||||
$this->extend('onAfterSave', $record);
|
||||
$this->setCurrentPageID($record->ID);
|
||||
|
||||
$this->response->addHeader('X-Status', rawurlencode(_t('LeftAndMain.SAVEDUP')));
|
||||
$this->response->addHeader('X-Status', rawurlencode(_t('LeftAndMain.SAVEDUP', 'Saved.')));
|
||||
return $this->getResponseNegotiator()->respond($this->request);
|
||||
}
|
||||
|
||||
@ -743,7 +743,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
||||
|
||||
$record->delete();
|
||||
|
||||
$this->response->addHeader('X-Status', rawurlencode(_t('LeftAndMain.SAVEDUP')));
|
||||
$this->response->addHeader('X-Status', rawurlencode(_t('LeftAndMain.DELETED', 'Deleted.')));
|
||||
return $this->getResponseNegotiator()->respond(
|
||||
$this->request,
|
||||
array('currentform' => array($this, 'EmptyForm'))
|
||||
|
Loading…
Reference in New Issue
Block a user