FEATURE: temporarily load trainees into all pages

This commit is contained in:
Michal Kváček
2017-03-03 00:17:17 +01:00
parent 0007425c86
commit 09c87661d3
+2 -2
View File
@@ -80,12 +80,12 @@ class Handler implements TemplateHandler
*/ */
public static function beforeRender(Content & $content) public static function beforeRender(Content & $content)
{ {
if ($content->isHomepage) { // if ($content->isHomepage) {
$category = Category::where('url', 'trenersky-tym') $category = Category::where('url', 'trenersky-tym')
->first(); ->first();
$content->traineeTeamCategory = $category; $content->traineeTeamCategory = $category;
} // }
} }
/** /**