diff options
author | Thomas Lange <code@nerdmind.de> | 2018-02-14 04:08:45 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2018-02-14 14:23:20 +0100 |
commit | d22dad11db40b4286cc0003ca844dc3874a9051f (patch) | |
tree | 46f1dfce9c43fae1d326a10d0bd1e80ab87ee7f6 /core/application.php | |
parent | 3224f6e8da7b6dc000856226f381012d778e2eca (diff) | |
download | blog-d22dad11db40b4286cc0003ca844dc3874a9051f.tar.gz blog-d22dad11db40b4286cc0003ca844dc3874a9051f.tar.xz blog-d22dad11db40b4286cc0003ca844dc3874a9051f.zip |
Add configuration option "$ITEM.SINGLE_REDIRECT"
Each option can be set to "TRUE" or "FALSE" (the default value is "FALSE"). For example, if you only have one user and "USER.SINGLE_REDIRECT" is set to "TRUE", then requests to "/user/" will be automatically redirected to "/user/username/".
Diffstat (limited to 'core/application.php')
-rw-r--r-- | core/application.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/application.php b/core/application.php index 3b1eba7..7e4f731 100644 --- a/core/application.php +++ b/core/application.php @@ -72,6 +72,9 @@ $configuration = [ 'PAGE.DESCRIPTION_SIZE' => 200, 'POST.DESCRIPTION_SIZE' => 200, 'USER.DESCRIPTION_SIZE' => 200, + 'PAGE.SINGLE_REDIRECT' => FALSE, + 'POST.SINGLE_REDIRECT' => FALSE, + 'USER.SINGLE_REDIRECT' => FALSE, 'PAGE.LIST_SORT' => 'time_insert DESC', 'POST.LIST_SORT' => 'time_insert DESC', 'USER.LIST_SORT' => 'time_insert DESC', |