From 235ce5716edc2f7cbe80fdccf26eac7269587839 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 08 Jun 2026 04:38:18 +0000
Subject: [PATCH] =FavouritesManager.php and FavouritesRoutes.php fixes. Moving all logic to FavouritesManager.php. Still some left to do

---
 inc/managers/_setup.php |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/inc/managers/_setup.php b/inc/managers/_setup.php
index 96ff954..d55098a 100644
--- a/inc/managers/_setup.php
+++ b/inc/managers/_setup.php
@@ -49,7 +49,7 @@
 		require(JVB_DIR . '/inc/managers/UserTermsManager.php');
 	}
 
-	if (!empty(Registrar::getFeatured('approve_new'))) {
+	if (!empty(Registrar::withFeature('approve_new'))) {
 		require(JVB_DIR . '/inc/managers/ApprovalManager.php');
 	}
 
@@ -63,7 +63,7 @@
 			require(JVB_DIR . '/inc/managers/Notifications/Preferences.php');
 			require(JVB_DIR . '/inc/managers/NotificationManager.php');
 		}
-		if ($membership->has('forum') && !empty(Registrar::getFeatured('is_content', 'term'))) {
+		if ($membership->has('forum') && !empty(Registrar::withFeature('is_content', 'term'))) {
 			require(JVB_DIR . '/inc/managers/NewsRelationships.php');
 		}
 		if ($membership->has('invitable')) {
@@ -83,9 +83,10 @@
 		require(JVB_DIR . '/inc/managers/ReferralManager.php');
 	}
 
-	if (!empty(Registrar::getFeatured('karma'))) {
+	if (!empty(Registrar::withFeature('karma'))) {
 		require(JVB_DIR . '/inc/managers/KarmaManager.php');
 	}
+//	if (Site::has('favourites') && !empty(Registrar::withFeature('favouritable'))) {
 	if (Site::has('favourites')) {
 		require(JVB_DIR . '/inc/managers/FavouritesManager.php');
 	}

--
Gitblit v1.10.0