Skip to content

Commit 1ab8442

Browse files
committed
add fix
1 parent a2ea6fa commit 1ab8442

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
# v1.6.14
2+
## 08/18/2019
3+
4+
1. [](#bugfix)
5+
* Actually include fix for `system\router.php` [#2627](https://github.com/getgrav/grav/issues/2627)
6+
17
# v1.6.13
2-
## 08/12/2019
8+
## 08/16/2019
39

410
1. [](#bugfix)
511
* Regression fix for `system\router.php` [#2627](https://github.com/getgrav/grav/issues/2627)
612

713
# v1.6.12
8-
## 08/11/2019
14+
## 08/14/2019
915

1016
1. [](#new)
1117
* Added support for custom `FormFlash` save locations

system/router.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
$grav_index = 'index.php';
2121

2222
/* Check the GRAV_BASEDIR environment variable and use if set */
23-
$grav_basedir = getenv('GRAV_BASEDIR') ?: '';
24-
25-
if (isset($grav_basedir)) {
23+
if ($grav_basedir = getenv('GRAV_BASEDIR') ?: '') {
2624
$grav_index = ltrim($grav_basedir, '/') . DIRECTORY_SEPARATOR . $grav_index;
2725
$grav_basedir = DIRECTORY_SEPARATOR . trim($grav_basedir, DIRECTORY_SEPARATOR);
2826
define('GRAV_ROOT', str_replace(DIRECTORY_SEPARATOR, '/', getcwd()) . $grav_basedir);

0 commit comments

Comments
 (0)