Code Duplication    Length = 7-7 lines in 2 locations

lib/templates/pobject/dialog.new.flow.php 1 location

@@ 9-15 (lines=7) @@
6
7
		// prefill intelligence, separate checks for nls name and normal name for compat with users etc
8
		$fname = $this->getdata("arNewFilename","none");
9
		if ($fname ) {
10
			if(!$this->getdata("name", $ARConfig->nls->default)) {
11
				$_POST[$ARConfig->nls->default]["name"] = $fname;
12
			} elseif( !$this->getdata("name","none") ) {
13
				$_POST["name"] = $fname;
14
			}
15
		}
16
17
	}
18
?>

lib/templates/pshortcut/dialog.new.flow.php 1 location

@@ 30-36 (lines=7) @@
27
28
		// prefill intelligence, separate checks for nls name and normal name for compat with users etc
29
		$fname = $this->getdata("arNewFilename","none");
30
		if ($fname ) {
31
			if(!$this->getdata("name", $ARConfig->nls->default)) {
32
				$_POST[$ARConfig->nls->default]["name"] = $fname;
33
			} elseif( !$this->getdata("name","none") ) {
34
				$_POST["name"] = $fname;
35
			}
36
		}
37
38
	}
39
?>