1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 13:52:56 +02:00

feat(site-plugin): add ability to access uri variable in the theme templates

This commit is contained in:
Awilum
2020-01-15 18:25:58 +03:00
parent a81819e759
commit 1904ddbea0

View File

@@ -90,10 +90,10 @@ class SiteController extends Controller
$path = 'themes/' . $this->registry->get('settings.theme') . '/' . (empty($this->entry['template']) ? 'templates/default' : 'templates/' . $this->entry['template']) . '.html';
if ($is_entry_not_found) {
return $this->view->render($response->withStatus(404), $path, ['entry' => $this->entry, 'query' => $query]);
return $this->view->render($response->withStatus(404), $path, ['entry' => $this->entry, 'query' => $query, 'uri' => $uri]);
}
return $this->view->render($response, $path, ['entry' => $this->entry, 'query' => $query]);
return $this->view->render($response, $path, ['entry' => $this->entry, 'query' => $query, 'uri' => $uri]);
}
/**