Code Duplication    Length = 8-8 lines in 2 locations

lib/templates/pobject/system.rewrite.htmlblocks.php 2 locations

@@ 25-32 (lines=8) @@
22
								$regexp = '|' . str_replace('|', '\|', str_replace("\\", "\\\\", $oldURL)) . '|';
23
24
								$parts = explode("arargs:args=", $page);
25
								foreach ($parts as $part) {
26
									$part = "arargs:args=" . $part;
27
									$count = preg_match("/arargs:args=\"(.*?)\"/i", $part, $matches);
28
									$oldargs = $matches[1];
29
									$oldargs = base64_decode(urldecode($oldargs));
30
									$newargs = preg_replace($regexp, $newURL, $oldargs);
31
									$page = str_replace($matches[1], base64_encode($newargs), $page);
32
								}
33
34
								if ($page != $this->data->$nls->$nls_field) {
35
									$this->data->$nls->$nls_field = $page;
@@ 47-54 (lines=8) @@
44
								$regexp = '|' . str_replace('|', '\|', str_replace("\\", "\\\\", $oldURL)) . '|';
45
46
								$parts = explode("arargs:args=", $page);
47
								foreach ($parts as $part) {
48
									$part = "arargs:args=" . $part;
49
									$count = preg_match("/arargs:args=\"(.*?)\"/i", $part, $matches);
50
									$oldargs = $matches[1];
51
									$oldargs = base64_decode(urldecode($oldargs));
52
									$newargs = preg_replace($regexp, $newURL, $oldargs);
53
									$page = str_replace($matches[1], base64_encode($newargs), $page);
54
								}
55
56
57
								if ($page != $this->data->custom[$nls][$customField]) {