diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-24 20:58:17 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-24 21:00:47 +0200 |
commit | a7b982bf620f19804d2f762d769e1de820bad252 (patch) | |
tree | 19dd2b8e104b4a32d31e8215098310474be0ced7 /core/include/page/list.php | |
parent | ee67c279b9cc8f3e72ec877bc0262a03863707d2 (diff) | |
download | blog-a7b982bf620f19804d2f762d769e1de820bad252.tar.gz blog-a7b982bf620f19804d2f762d769e1de820bad252.tar.xz blog-a7b982bf620f19804d2f762d769e1de820bad252.zip |
Use correct config option for redirect singles
In addition to the last commit, use the correct configuration option in
the code to check if single items should be redirected.
Diffstat (limited to 'core/include/page/list.php')
-rw-r--r-- | core/include/page/list.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/include/page/list.php b/core/include/page/list.php index 8cfbce5..a02fd33 100644 --- a/core/include/page/list.php +++ b/core/include/page/list.php @@ -29,7 +29,7 @@ if($currentSite < 1 OR ($currentSite > $lastSite AND $lastSite > 0)) { #=============================================================================== # Single redirect #=============================================================================== -if(Application::get('PAGE.SINGLE_REDIRECT') === TRUE AND $count === 1) { +if(Application::get('PAGE.REDIRECT_SINGLE') === TRUE AND $count === 1) { $Page = $PageRepository->getLast(); HTTP::redirect(Application::getEntityURL($Page)); } |