Code Duplication    Length = 3-4 lines in 2 locations

class/gwikiPage.php 2 locations

@@ 1634-1637 (lines=4) @@
1631
            if (strncasecmp($link, XOOPS_URL, strlen(XOOPS_URL)) === 0) {
1632
                $ext = false;
1633
            } // matches our site
1634
            if (strcasecmp('siteurl:', substr($link, 0, 8)) === 0) { // explicit reference to our site
1635
                $link = XOOPS_URL . substr($link, 8);
1636
                $ext  = false;
1637
            }
1638
            if (strpos($link, ':') === false) {
1639
                $ext = false;
1640
            } // no protocol, assume relative url
@@ 1974-1976 (lines=3) @@
1971
                $parms[$i] = trim($parm);
1972
            }
1973
        }
1974
        if (strcasecmp('siteurl:', substr($link, 0, 8)) === 0) { // explicit reference to our site
1975
            $link = XOOPS_URL . substr($link, 8);
1976
        }
1977
        $showthumb     = false;
1978
        $showthumblink = false;
1979
        if (strcasecmp('thumb:', substr($link, 0, 6)) === 0) { // explicit request for thumbnail, links to full image