Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid duplicating RequestHandler component.

  • Loading branch information...
commit d269588e78ce0b20e986136a598e548bdfabe3aa 1 parent 528671f
@bar bar authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Cake/Controller/CakeErrorController.php
View
6 lib/Cake/Controller/CakeErrorController.php
@@ -50,7 +50,11 @@ class CakeErrorController extends AppController {
*/
public function __construct($request = null, $response = null) {
parent::__construct($request, $response);
- if (count(Router::extensions())) {
+ if (
+ count(Router::extensions()) &&
+ !array_key_exists('RequestHandler', $this->components) &&
+ !in_array('RequestHandler', $this->components, true)
+ ) {
$this->components[] = 'RequestHandler';
}
$this->constructClasses();
Please sign in to comment.
Something went wrong with that request. Please try again.