Fixed error when checking missing log file [#2088]

This commit is contained in:
Matias Griese
2021-03-04 15:50:35 +02:00
parent 8a63dc9abf
commit 1e67bb8011
2 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,8 @@
1. [](#improved)
* Force height of Flex pages admin to fit available space
1. [](#bugfix)
* Fixed error when checking missing log file [#2088](https://github.com/getgrav/grav-plugin-admin/issues/2088)
# v1.10.6
## 02/23/2021
@@ -13,7 +15,7 @@
* Flex pages admin better uses available space [#2075](https://github.com/getgrav/grav/issues/2075)
1. [](#bugfix)
* Regression: Fixed enabling/disabling plugin or theme corrupting configuration
* Fixed unnecessary closing bracket cuasing JS error [#2079](https://github.com/getgrav/grav-plugin-admin/issues/2079)
* Fixed unnecessary closing bracket causing JS error [#2079](https://github.com/getgrav/grav-plugin-admin/issues/2079)
* Fixed wrong language in Admin Tools [#2077](https://github.com/getgrav/grav-plugin-admin/issues/2077)
# v1.10.5

View File

@@ -19,7 +19,7 @@
{% set verbose = grav.uri.query('verbose') == 'true' ? true : false %}
{% set lines = grav.uri.query('lines') ?: 20 %}
{% set logfile = grav.locator.findResource("log://" ~ file) %}
{% set logs = logviewer.objectTail(logfile, lines|int, false) %}
{% set logs = logfile ? logviewer.objectTail(logfile, lines|int, false) : [] %}
{% set log_files = admin.getLogFiles() %}
{% set title = log_files[file] %}