Code Duplication    Length = 3-4 lines in 2 locations

mod/blog/lib/blog.php 1 location

@@ 351-354 (lines=4) @@
348
	}
349
350
	// load the revision annotation if requested
351
	if ($revision instanceof ElggAnnotation && $revision->entity_guid == $post->getGUID()) {
352
		$values['revision'] = $revision;
353
		$values['description'] = $revision->value;
354
	}
355
356
	// display a notice if there's an autosaved annotation
357
	// and we're not editing it.

mod/pages/lib/pages.php 1 location

@@ 50-52 (lines=3) @@
47
	elgg_clear_sticky_form('page');
48
49
	// load the revision annotation if requested
50
	if ($revision instanceof ElggAnnotation && $revision->entity_guid == $page->getGUID()) {
51
		$values['description'] = $revision->value;
52
	}
53
54
	return $values;
55
}