From 0afb2c0046b55c123eafb4ab9ee77efa68d12463 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 06 Jun 2026 17:15:31 +0000
Subject: [PATCH] =Starting the Favourites.js setup, converting previous Northeh stuff to new Registrar, fixing up Square.php integration to match

---
 inc/rest/RestRouteManager.php |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/inc/rest/RestRouteManager.php b/inc/rest/RestRouteManager.php
index 1c8875c..ff72f13 100644
--- a/inc/rest/RestRouteManager.php
+++ b/inc/rest/RestRouteManager.php
@@ -158,11 +158,7 @@
 
 	protected function checkContent(string $content, bool $bool = false):string|bool
 	{
-		$result = JVB_CONTENT[$content]??JVB_TAXONOMY[$content]??JVB_USER[$content]??'';
-		if ($bool) {
-			return $result !== '';
-		}
-		return $result;
+		return (bool)Registrar::getInstance($content);
 	}
 
 

--
Gitblit v1.10.0