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:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

15
modules/default/controllers/ErrorController.php Executable file → Normal file
View 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;
}
}
}