Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Renderer::_render() with no set $request property. #624

Closed
wants to merge 1 commit into from

Conversation

mikegreiling
Copy link
Contributor

Quick fix in the renderer class for instances when $_request is null. I encountered this when attaching my own error handler method which was not attached to Dispatch::run() as the example error handler is, and thus the request object was not available.

My error template called $this->_render() to include a template element and this raised an ErrorException "Trying to get property of non-object in [...]/Projects/Lithium/dev/li3_core/libraries/lithium/template/view/Renderer.php on line 490";

@travisbot
Copy link

This pull request passes (merged 6387beb into c3419a4).

@nateabele
Copy link
Member

Looks good. Once we get a test case and this is submitted against the dev branch, we'll get it merged in.

@nateabele
Copy link
Member

Merged to dev in 51d1770

@nateabele nateabele closed this Sep 13, 2012
@mikegreiling
Copy link
Contributor Author

sorry, got a little busy. I see this had been merged now, do you still need a test case for this?

@nateabele
Copy link
Member

No, it's fine. @mehlah is actually rewriting the affected code not to rely on $_request.

@mehlah mehlah mentioned this pull request Sep 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants