Code Duplication    Length = 4-4 lines in 2 locations

lib/templates/pobject/dialog.edit.php 1 location

@@ 42-45 (lines=4) @@
39
				"template" => "dialog.edit.custom.php"
40
			);
41
		}
42
		if( !$this->lock('O')){
43
			$i = $wgWizFlow[0]["current"]+1;
44
			$wgWizFlow[$i]["template"] = "dialog.edit.lock.php";
45
		}
46
47
		$arLanguage=$this->getdata("arLanguage","none");
48
		if (!$arLanguage) { // language select hasn't been done yet, so start with default language

lib/templates/pshortcut/dialog.edit.shortcut.php 1 location

@@ 38-41 (lines=4) @@
35
				"template" => "dialog.edit.shortcut.custom.php"
36
			);
37
		}
38
		if( !$this->lock('O')){
39
			$i = $wgWizFlow[0]["current"]+1;
40
			$wgWizFlow[$i]["template"] = "dialog.edit.lock.php";
41
		}
42
43
		$arLanguage=$this->getdata("arLanguage","none");
44
		if (!$arLanguage) { // language select hasn't been done yet, so start with default language