Skip to content

Commit

Permalink
Fixed PagesIndex call
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Jan 13, 2017
1 parent b84bbb4 commit d159887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/RenderController.php
Expand Up @@ -38,7 +38,7 @@ public function actionIndex($page = null)
if ($meta['type'] === 'dir') {
$index = PagesIndex::createFromDir($path);

return $this->render('index', $index);
return $this->render('@hiqdev/com/views/site/index', ['dataProvider' => $index->getDataProvider()]);
} else {
$page = AbstractPage::createFromFile($path);

Expand Down

0 comments on commit d159887

Please sign in to comment.