Code Duplication    Length = 8-8 lines in 2 locations

mod/externalpages/start.php 1 location

@@ 119-126 (lines=8) @@
116
	$type = elgg_extract('type', $params);
117
		
118
	$pages = array('about', 'terms', 'privacy');
119
	foreach ($pages as $page) {
120
		$return[] = ElggMenuItem::factory(array(
121
			'name' => $page,
122
			'text' => elgg_echo("expages:$page"),
123
			'href' => "admin/appearance/expages?type=$page",
124
			'selected' => $page === $type,
125
		));
126
	}
127
	return $return;
128
}
129

mod/gccollab_theme/start.php 1 location

@@ 161-168 (lines=8) @@
158
    $type = elgg_extract('type', $params);
159
        
160
    $pages = array('about', 'a_propos', 'terms', 'termes', 'privacy', 'confidentialite', 'faq', 'qfp', 'participating_organizations', 'organismes_participants', 'partners', 'partenaires');
161
    foreach ($pages as $page) {
162
        $return[] = ElggMenuItem::factory(array(
163
            'name' => $page,
164
            'text' => elgg_echo("expages:$page"),
165
            'href' => "admin/appearance/expages?type=$page",
166
            'selected' => $page === $type,
167
        ));
168
    }
169
    return $return;
170
}
171