From 9dd77e59961c8ec736d8d67e8e6cc4eb3f5743e3 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 14 Sep 2022 14:58:20 +0000 Subject: [PATCH] wait #5438 @0.25 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 77a0eb46e..322342f45 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -2489,6 +2489,14 @@ class JoueclubWishlistLink extends normalLink class intexLink extends wescoLink { + public function ignore() + { + if (!static::_getURLOfType('intex', $this->to, false)) { + return true; + } + return parent::ignore(); + } + public static function _getURL($to) { return static::_getURLOfType('intex', $to); @@ -2514,7 +2522,7 @@ class wescoLink extends normalLink return static::_getURL($this->to); } - protected static function _getURLOfType($type, $ref) + protected static function _getURLOfType($type, $ref, $default = null) { global $core; $e = explode(':', $ref, 2); @@ -2526,7 +2534,10 @@ class wescoLink extends normalLink if ($r->count()) { return $r->url; } - return 'https://workshop.fluidbook.com/services/wsref?ref=' . urlencode($type . '|' . $ref); + if (null === $default) { + return 'https://workshop.fluidbook.com/services/wsref?ref=' . urlencode($type . '|' . $ref); + } + return $default; } -- 2.39.5