1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-30 19:00:32 +02:00

Version 1.1.6 add return to render to add headers

This commit is contained in:
Sebastian
2018-05-24 10:45:11 +02:00
parent b3bff1ef3f
commit 96f595c05c
2 changed files with 3 additions and 3 deletions

2
cache/lastCache.txt vendored
View File

@@ -1 +1 @@
1527024413
1527151147

View File

@@ -51,7 +51,7 @@ class PageController extends Controller
{
$content = '<h1>No Content</h1><p>Your content folder is empty.</p>';
$this->render($response, '/index.twig', array( 'content' => $content ));
return $this->render($response, '/index.twig', array( 'content' => $content ));
}
elseif(!$cache->validate('cache', 'lastSitemap.txt', 86400))
{
@@ -165,7 +165,7 @@ class PageController extends Controller
$route = empty($args) && $settings['startpage'] ? '/cover.twig' : '/index.twig';
$this->render($response, $route, array('navigation' => $structure, 'content' => $contentHTML, 'item' => $item, 'breadcrumb' => $breadcrumb, 'settings' => $settings, 'title' => $title, 'description' => $description, 'base_url' => $base_url, 'image' => $firstImage ));
return $this->render($response, $route, array('navigation' => $structure, 'content' => $contentHTML, 'item' => $item, 'breadcrumb' => $breadcrumb, 'settings' => $settings, 'title' => $title, 'description' => $description, 'base_url' => $base_url, 'image' => $firstImage ));
}
protected function getCachedStructure($cache)