Code Duplication    Length = 8-8 lines in 2 locations

mod/blog/lib/blog.php 1 location

@@ 93-100 (lines=8) @@
90
		$crumbs_title = gc_explode_translation($container->name, $lang);
91
		elgg_push_breadcrumb($crumbs_title);
92
93
		if ($current_user && ($container_guid == $current_user->guid)) {
94
			$return['filter_context'] = 'mine';
95
		} else if (elgg_instanceof($container, 'group')) {
96
			$return['filter'] = false;
97
		} else {
98
			// do not show button or select a tab when viewing someone else's posts
99
			$return['filter_context'] = 'none';
100
		}
101
	} else {
102
		$options['preload_containers'] = true;
103
		$return['filter_context'] = 'all';

mod/blog_tools/pages/owner.php 1 location

@@ 29-36 (lines=8) @@
26
27
	elgg_push_breadcrumb($container->name);
28
29
	if ($current_user && ($container_guid == $current_user->getGUID())) {
30
		$params["filter_context"] = "mine";
31
	} elseif (elgg_instanceof($container, "group")) {
32
		$params["filter"] = false;
33
	} else {
34
		// do not show button or select a tab when viewing someone else"s posts
35
		$params["filter_context"] = "none";
36
	}
37
}
38
39
elgg_register_title_button();