From a7b982bf620f19804d2f762d769e1de820bad252 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 24 Jul 2021 20:58:17 +0200 Subject: 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. --- core/include/category/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/include/category') diff --git a/core/include/category/list.php b/core/include/category/list.php index 3a5720b..62881a6 100644 --- a/core/include/category/list.php +++ b/core/include/category/list.php @@ -28,7 +28,7 @@ if($currentSite < 1 OR ($currentSite > $lastSite AND $lastSite > 0)) { #=============================================================================== # Single redirect #=============================================================================== -if(Application::get('CATEGORY.SINGLE_REDIRECT') === TRUE AND $count === 1) { +if(Application::get('CATEGORY.REDIRECT_SINGLE') === TRUE AND $count === 1) { $Category = $CategoryRepository->getLast(); HTTP::redirect(Application::getEntityURL($Category)); } -- cgit v1.2.3