mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2298 from candidasa/defect51-timeout-message
BUG adding a more descriptive message when the CMS session times out. It...
This commit is contained in:
commit
00e0bf10ab
@ -188,7 +188,10 @@ class Security extends Controller {
|
||||
if(Director::is_ajax()) {
|
||||
$response = ($controller) ? $controller->getResponse() : new SS_HTTPResponse();
|
||||
$response->setStatusCode(403);
|
||||
if(!Member::currentUser()) $response->setBody('NOTLOGGEDIN:');
|
||||
if(!Member::currentUser()) {
|
||||
$response->setBody(_t('ContentController.NOTLOGGEDIN','Not logged in'));
|
||||
$response->setStatusDescription(_t('ContentController.NOTLOGGEDIN','Not logged in'));
|
||||
}
|
||||
return $response;
|
||||
} else {
|
||||
// Prepare the messageSet provided
|
||||
|
Loading…
Reference in New Issue
Block a user