Code Duplication    Length = 8-8 lines in 2 locations

lib/modules/mod_cacherss.php 2 locations

@@ 39-46 (lines=8) @@
36
37
38
class pinp_cacherss {
39
	public function _load( $url, $timeout = 1800 ) {
40
		global $AR;
41
		$cachelocation = $AR->dir->install . "/files/cache/rss/";
42
		$cache = new cacherss_cache( $cachelocation );
43
		$httphelper = new httphelper( $cache );
44
		$rss = new cacherss( $httphelper, $timeout );
45
		return $rss->load( $url );
46
	}
47
48
	public function _titlelink( $url, $timeout = 1800 ) {
49
		global $AR;
@@ 48-55 (lines=8) @@
45
		return $rss->load( $url );
46
	}
47
48
	public function _titlelink( $url, $timeout = 1800 ) {
49
		global $AR;
50
		$cachelocation = $AR->dir->install . "/files/cache/rss/";
51
		$cache = new cacherss_cache( $cachelocation );
52
		$httphelper = new httphelper( $cache );
53
		$rss = new cacherss( $httphelper, $timeout );
54
		return $rss->titlelink( $url );
55
	}
56
}
57
58