Skip to content

Commit

Permalink
updated request param
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 committed Jul 19, 2016
1 parent 44b0985 commit e43845b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controllers/DefaultController.php
Expand Up @@ -55,15 +55,15 @@ public function actionIndex()
/**
* renders a page view from the database.
*
* @param $id
* @param $pageId
* @param null $pageName
* @param null $parentLeave
*
* @return string
*
* @throws HttpException
*/
public function actionPage($id, $pageName = null, $parentLeave = null)
public function actionPage($pageId, $pageName = null, $parentLeave = null)
{
Url::remember();
\Yii::$app->session['__crudReturnUrl'] = null;
Expand All @@ -75,7 +75,7 @@ public function actionPage($id, $pageName = null, $parentLeave = null)
// @todo: improve handling, using also roles
$pageQuery = Tree::find()->where(
[
Tree::ATTR_ID => $id,
Tree::ATTR_ID => $pageId,
Tree::ATTR_ACTIVE => Tree::ACTIVE,
Tree::ATTR_ACCESS_DOMAIN => \Yii::$app->language,
]
Expand Down Expand Up @@ -104,7 +104,7 @@ public function actionPage($id, $pageName = null, $parentLeave = null)
// Render view
return $this->render($page->view, ['page' => $page]);
} else {
throw new HttpException(404, \Yii::t('app', 'Page not found.').' [ID: '.$id.']');
throw new HttpException(404, \Yii::t('app', 'Page not found.').' [ID: '.$pageId.']');
}
}
}

0 comments on commit e43845b

Please sign in to comment.