Code Duplication    Length = 7-7 lines in 2 locations

extras/gwiki.php 1 location

@@ 100-106 (lines=7) @@
97
98
// if we get a naked or external prefix, try and do something useful
99
$pfx = $wikiPage->getPrefix($page);
100
if ($pfx && $pfx['defined']) {
101
    $page = $pfx['actual_page'];
102
    if ($pfx['prefix_is_external']) {
103
        header("Location: {$pfx['actual_page']}");
104
        exit;
105
    }
106
}
107
108
$pageX       = $wikiPage->getPage($page);
109
$attachments = $wikiPage->getAttachments($page);

index.php 1 location

@@ 48-54 (lines=7) @@
45
46
// if we get a naked or external prefix, try and do something useful
47
$pfx = $wikiPage->getPrefix($page);
48
if ($pfx && $pfx['defined']) {
49
    $page = $pfx['actual_page'];
50
    if ($pfx['prefix_is_external']) {
51
        header("Location: {$pfx['actual_page']}");
52
        exit;
53
    }
54
}
55
56
global $wikiPage;
57
$pageX       = $wikiPage->getPage($page);