Skip to content

Commit

Permalink
fix(bootstrap): fix and improve bootstrap loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jan 3, 2021
1 parent 458ecae commit 1ddd2e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions app/Controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public function index(Request $request, Response $response, array $args) : Respo
return $response->withJson($entry);
}


$themeBootstrapPath = PATH['project']. '/themes/' . flextype('registry')->get('plugins.site.settings.theme') . '/theme.php';
filesystem()->file($themeBootstrapPath)->exists() and include_once $themeBootstrapPath;

// Set template path for current entry
$path = 'themes/' . flextype('registry')->get('plugins.site.settings.theme') . '/' . (empty($entry['template']) ? 'templates/default' : 'templates/' . $entry['template']) . '.html';

Expand Down
3 changes: 0 additions & 3 deletions dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@
* Init themes
*/
flextype()->container()['themes']->init();

$themeBootstrapPath = PATH['project']. '/themes/' . flextype('registry')->get('plugins.site.settings.theme') . '/theme.php';
filesystem()->file($themeBootstrapPath)->exists() and include_once $themeBootstrapPath;

0 comments on commit 1ddd2e3

Please sign in to comment.