summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-03-01 18:49:40 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-03-01 18:50:02 +0000
commite26ec5eb034722056633e3cf5fd3a1ab886d6c77 (patch)
tree5708e076c33cfdf4411edd8ec6c25e98b3f12082 /index.php
parentfb7a0427c91eccd23224a17d3f2e5cd481309191 (diff)
downloadwebtrees-e26ec5eb034722056633e3cf5fd3a1ab886d6c77.tar.gz
webtrees-e26ec5eb034722056633e3cf5fd3a1ab886d6c77.tar.bz2
webtrees-e26ec5eb034722056633e3cf5fd3a1ab886d6c77.zip
Tidy up initialisation
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/index.php b/index.php
index 226077d0d2..3bb249b76e 100644
--- a/index.php
+++ b/index.php
@@ -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,
];