From ccf5e61a075c35d24befc175994b5cb8957ca322 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 26 Aug 2026 21:45:53 +0000
Subject: [PATCH] =Extra JVB() calls replaced, minor tweaks
---
inc/managers/DashboardManager.php | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/inc/managers/DashboardManager.php b/inc/managers/DashboardManager.php
index 35cad18..fc91ddf 100644
--- a/inc/managers/DashboardManager.php
+++ b/inc/managers/DashboardManager.php
@@ -28,9 +28,7 @@
public function __construct()
{
$this->cache = Cache::for('dashboard', WEEK_IN_SECONDS)->user();
- if (JVB_TESTING) {
- $this->cache->flush();
- }
+
add_action('init', [$this, 'registerDashboard']);
@@ -964,10 +962,11 @@
if ($connection !== 'integrations') {
$userID = (Site::has('has_membership')) ? $this->user->ID : null;
- $integration = JVB()->connect($connection, $userID);
-
- echo '<h1>Managing '.$integration->title.'</h1>';
- $integration->renderDefaults();
+ $integration = $this->getServiceUser($connection, $userID);
+ if (method_exists($integration, 'renderDefaults')) {
+ echo '<h1>Managing '.$integration->title.'</h1>';
+ $integration->renderDefaults();
+ }
} else {
?>
<section class="item-grid integrations">
--
Gitblit v1.10.0