GroupController: Do not throw Zend_Controller_Action_Exception (404)

Use Controller::httpNotFound() instead.

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-20 10:59:41 +02:00
parent 605ae3d802
commit bd07f78d94
1 changed files with 1 additions and 4 deletions

View File

@ -135,10 +135,7 @@ class GroupController extends Controller
if ($name !== null) {
$config = Config::app('groups');
if (! $config->hasSection($name)) {
throw new Zend_Controller_Action_Exception(
sprintf($this->translate('User group backend "%s" not found'), $name),
404
);
$this->httpNotFound(sprintf($this->translate('User group backend "%s" not found'), $name));
} else {
$backend = UserGroupBackend::create($name, $config->getSection($name));
if ($interface && !$backend instanceof $interface) {