diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-03-01 18:49:40 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-03-01 18:50:02 +0000 |
| commit | e26ec5eb034722056633e3cf5fd3a1ab886d6c77 (patch) | |
| tree | 5708e076c33cfdf4411edd8ec6c25e98b3f12082 /index.php | |
| parent | fb7a0427c91eccd23224a17d3f2e5cd481309191 (diff) | |
| download | webtrees-e26ec5eb034722056633e3cf5fd3a1ab886d6c77.tar.gz webtrees-e26ec5eb034722056633e3cf5fd3a1ab886d6c77.tar.bz2 webtrees-e26ec5eb034722056633e3cf5fd3a1ab886d6c77.zip | |
Tidy up initialisation
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -169,8 +169,6 @@ if ($next_session_update < Carbon::now()) { Session::put('session_time_updates', $timestamp_now); } -DebugBar::startMeasure('routing'); - try { // Most requests will need the current tree and user. $tree = Tree::findByName($request->get('ged')) ?? null; @@ -187,6 +185,8 @@ try { // Most layouts will require a tree for the page header/footer View::share('tree', $tree); + DebugBar::startMeasure('routing'); + // Load the route and routing table. $route = $request->get('route'); $routes = require 'routes/web.php'; @@ -237,10 +237,6 @@ try { DebugBar::stopMeasure('init theme'); - // Note that we can't stop this timer, as running the action will - // generate the response - which includes (and stops) the timer - DebugBar::startMeasure('controller_action'); - $middleware_stack = [ CheckForMaintenanceMode::class, ]; |
