Browse Source

Version 1.1.6 add return to render to add headers

Sebastian 7 years ago
parent
commit
96f595c05c
2 changed files with 3 additions and 3 deletions
  1. 1 1
      cache/lastCache.txt
  2. 2 2
      system/Controllers/PageController.php

+ 1 - 1
cache/lastCache.txt

@@ -1 +1 @@
-1527024413
+1527151147

+ 2 - 2
system/Controllers/PageController.php

@@ -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)