Merge pull request #5838 from tractorcow/pulls/4.0/minor-error-string

MINOR Clarify string concatenation to improve readability
This commit is contained in:
Loz Calver 2016-07-25 09:17:14 +01:00 committed by GitHub
commit 73d418dbee

View File

@ -485,7 +485,7 @@ class RequestHandler extends ViewableData {
$request = $this->getRequest();
// Call a handler method such as onBeforeHTTPError404
$this->extend('onBeforeHTTPError' . $errorCode, $request);
$this->extend("onBeforeHTTPError{$errorCode}", $request);
// Call a handler method such as onBeforeHTTPError, passing 404 as the first arg
$this->extend('onBeforeHTTPError', $errorCode, $request);