Code Duplication    Length = 3-4 lines in 2 locations

class/GwikiPage.php 2 locations

@@ 1623-1626 (lines=4) @@
1620
            if (strncasecmp($link, XOOPS_URL, strlen(XOOPS_URL)) === 0) {
1621
                $ext = false;
1622
            } // matches our site
1623
            if (strcasecmp('siteurl:', substr($link, 0, 8)) === 0) { // explicit reference to our site
1624
                $link = XOOPS_URL . substr($link, 8);
1625
                $ext  = false;
1626
            }
1627
            if (strpos($link, ':') === false) {
1628
                $ext = false;
1629
            } // no protocol, assume relative url
@@ 1964-1966 (lines=3) @@
1961
                $parms[$i] = trim($parm);
1962
            }
1963
        }
1964
        if (strcasecmp('siteurl:', substr($link, 0, 8)) === 0) { // explicit reference to our site
1965
            $link = XOOPS_URL . substr($link, 8);
1966
        }
1967
        $showthumb     = false;
1968
        $showthumblink = false;
1969
        if (strcasecmp('thumb:', substr($link, 0, 6)) === 0) { // explicit request for thumbnail, links to full image