summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-01-23 17:18:59 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-01-23 17:18:59 +0000
commita612ab9f45ad6c797765d82d1da45558735bf42e (patch)
tree13bdeb455ff45e21047b35c317dd9c296d414902 /app
parent354679afe0ce64cf5aad05164c7dd7eba7e37cef (diff)
downloadwebtrees-a612ab9f45ad6c797765d82d1da45558735bf42e.tar.gz
webtrees-a612ab9f45ad6c797765d82d1da45558735bf42e.tar.bz2
webtrees-a612ab9f45ad6c797765d82d1da45558735bf42e.zip
CodeStyle
Diffstat (limited to 'app')
-rw-r--r--app/Http/ViewResponseTrait.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/Http/ViewResponseTrait.php b/app/Http/ViewResponseTrait.php
index 311f049753..6c781f9c80 100644
--- a/app/Http/ViewResponseTrait.php
+++ b/app/Http/ViewResponseTrait.php
@@ -2,7 +2,7 @@
/**
* webtrees: online genealogy
- * Copyright (C) 2019 webtrees development team
+ * Copyright (C) 2021 webtrees development team
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -51,11 +51,8 @@ trait ViewResponseTrait
$layout_data['content'] = view($view_name, $view_data);
$layout_data['request'] = app(ServerRequestInterface::class);
- // Most pages use the default layout. Other built-in layouts include admin and ajax.
- $layout = $this->layout;
-
// Insert the view into the layout
- $html = view($layout, $layout_data);
+ $html = view($this->layout, $layout_data);
return response($html, $status);
}