From ff4ef6e8ba8e5a61895a5e3ac0760f43568e9532 Mon Sep 17 00:00:00 2001 From: n0nag0n Date: Wed, 24 Nov 2021 07:20:08 -0700 Subject: [PATCH] Fixed bad variable reference. --- controllers/Init_Environment_Controller.php | 9 ++------- ui/layout.htm | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/controllers/Init_Environment_Controller.php b/controllers/Init_Environment_Controller.php index dc47743..bc6bdb9 100644 --- a/controllers/Init_Environment_Controller.php +++ b/controllers/Init_Environment_Controller.php @@ -5,13 +5,8 @@ class Init_Environment_Controller extends Base_Controller { - public function beforeroute(\Base $fw) { - - - } - public function indexAction(\Base $fw): void { - $this->renderHtml('init_environment/index.htm'); + $this->renderHtml('init_environment/index.htm', [ 'PAGE_TITLE' => 'Initialize Environment' ]); } public function pageAction(\Base $fw, array $args = []): void { @@ -59,7 +54,7 @@ public function pageAction(\Base $fw, array $args = []): void { $project_config = new Project_Config($fw->DB); $project_config->load(); - $this->renderHtml($page_ui, [ 'config' => $project_config->cast() ] ); + $this->renderHtml($page_ui, [ 'config' => $project_config->cast(), 'PAGE_TITLE' => $page.' - Configure Environment' ] ); } public function update(\Base $fw): void { diff --git a/ui/layout.htm b/ui/layout.htm index 87dbcdf..cb0272c 100644 --- a/ui/layout.htm +++ b/ui/layout.htm @@ -4,7 +4,7 @@ - {{ @PAGE_TITLE ? @PAGE_TITLE.' - ' : '' }}Fat-Free Dev Tools + {{ isset(@PAGE_TITLE) ? @PAGE_TITLE.' - ' : '' }}Fat-Free Dev Tools