Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changing 647dc9f to work with the cleaned up routing bundle

  • Loading branch information...
commit 202c4f5a1854e14e549f1b16a7898fd2f9c5e57a 1 parent 4e6026d
@dbu dbu authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 Controller/ContentController.php
View
8 Controller/ContentController.php
@@ -37,14 +37,14 @@ public function __construct(EngineInterface $templating, $defaultTemplate)
*
* @return Symfony\Component\HttpFoundation\Response
*/
- public function indexAction($contentDocument, $path, $_template = null)
+ public function indexAction($contentDocument, $path, $contentTemplate = null)
{
if (!$contentDocument) {
throw new NotFoundHttpException('Content not found: ' . $path);
}
- if ($_template === null) {
- $_template = $this->defaultTemplate;
+ if ($contentTemplate === null) {
+ $contentTemplate = $this->defaultTemplate;
}
$params = array(
@@ -53,6 +53,6 @@ public function indexAction($contentDocument, $path, $_template = null)
'url' => $path,
);
- return $this->templating->renderResponse($_template, $params);
+ return $this->templating->renderResponse($contentTemplate, $params);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.