]> _ Git - cubeextranet.git/commitdiff
wait #5438 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 14 Sep 2022 14:58:20 +0000 (14:58 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 14 Sep 2022 14:58:20 +0000 (14:58 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 77a0eb46e7c0fd430595fcba57972b7b347c3357..322342f45a0bebd1cb3c792adc2ebda7c0d08158 100644 (file)
@@ -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;
     }