Skip to content

Commit

Permalink
Fixed bad variable reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed Nov 24, 2021
1 parent ef1ff41 commit ff4ef6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions controllers/Init_Environment_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion ui/layout.htm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{ @PAGE_TITLE ? @PAGE_TITLE.' - ' : '' }}Fat-Free Dev Tools</title>
<title>{{ isset(@PAGE_TITLE) ? @PAGE_TITLE.' - ' : '' }}Fat-Free Dev Tools</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="/css/main.css">
Expand Down

0 comments on commit ff4ef6e

Please sign in to comment.