From: vincent@cubedesigners.com Date: Wed, 14 Sep 2022 14:58:20 +0000 (+0000) Subject: wait #5438 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9dd77e59961c8ec736d8d67e8e6cc4eb3f5743e3;p=cubeextranet.git wait #5438 @0.25 --- 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; }