From 17e04322520b1ec5a03cf8babd0ab1a480df0871 Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Tue, 6 Aug 2013 13:10:55 +1200 Subject: [PATCH] BUG adding a more descriptive message when the CMS session times out. It used to say "Forbidden", now it says "Not logged in". --- security/Security.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/security/Security.php b/security/Security.php index cc08025ae..d992e4583 100644 --- a/security/Security.php +++ b/security/Security.php @@ -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