From 39775e624df2e9085640b7b5a766256c730e8347 Mon Sep 17 00:00:00 2001 From: Ro Date: Fri, 17 Dec 2021 14:40:09 -0800 Subject: [PATCH] hot fix for adding images two recent and featured links --- brain/App.inc.php | 38 +++++++++++++++++++------------------- brain/data/Render.inc.php | 2 ++ 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/brain/App.inc.php b/brain/App.inc.php index 3e18c59..6c48278 100644 --- a/brain/App.inc.php +++ b/brain/App.inc.php @@ -24,24 +24,24 @@ include "../brain/utility/HandleCors.inc.php"; class App { - public function __construct() - { - // set up cors - new HandleCors(); - $app = AppFactory::create(); - $twig = Twig::create("../brain/views/"); - $app->add(TwigMiddleware::create($app, $twig)); - //set up routing - $app->get( - "/[{first}[/{second}[/{third}[/{fourth}[/{fifth}]]]]]", - "\RouteControl:get" - ); - $app->post( - "/[{first}[/{second}[/{third}[/{fourth}]]]]", - "\RouteControl:post" - ); - //start the app + public function __construct() + { + // set up cors + new HandleCors(); + $app = AppFactory::create(); + $twig = Twig::create("../brain/views/"); + $app->add(TwigMiddleware::create($app, $twig)); + //set up routing + $app->get( + "/[{first}[/{second}[/{third}[/{fourth}[/{fifth}]]]]]", + "\RouteControl:get" + ); + $app->post( + "/[{first}[/{second}[/{third}[/{fourth}]]]]", + "\RouteControl:post" + ); + //start the app - $app->run(); - } + $app->run(); + } } diff --git a/brain/data/Render.inc.php b/brain/data/Render.inc.php index 93b8096..cb31f3d 100644 --- a/brain/data/Render.inc.php +++ b/brain/data/Render.inc.php @@ -81,6 +81,7 @@ class Render "path" => $page["path"], "slug" => $page["slug"], "title" => $page["title"], + "feature" => $page["feature"], ]); } @@ -90,6 +91,7 @@ class Render "path" => $page["path"], "slug" => $page["slug"], "title" => $page["title"], + "feature" => $page["feature"], ]); } }