import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
15
modules/default/controllers/ErrorController.php
Executable file → Normal file
15
modules/default/controllers/ErrorController.php
Executable file → Normal file
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* @copyright Copyright (C) 2005-2009 Keyboard Monkeys Ltd. http://www.kb-m.com
|
||||
* @copyright Copyright (C) 2005-2010 Keyboard Monkeys Ltd. http://www.kb-m.com
|
||||
* @license http://creativecommons.org/licenses/BSD/ BSD License
|
||||
* @author Keyboard Monkey Ltd
|
||||
* @since CommunityID 0.9
|
||||
@ -11,4 +11,17 @@
|
||||
|
||||
class ErrorController extends Monkeys_Controller_Error
|
||||
{
|
||||
protected function _getTranslationForException($ex)
|
||||
{
|
||||
switch ($ex) {
|
||||
case 'Monkeys_BadUrlException':
|
||||
return $this->view->translate('The URL you entered is incorrect. Please correct and try again.');
|
||||
break;
|
||||
case 'Monkeys_AccessDeniedException':
|
||||
return $this->view->translate('Access Denied - Maybe your session has expired? Try logging-in again.');
|
||||
break;
|
||||
default:
|
||||
return $ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user