Code Duplication    Length = 8-8 lines in 2 locations

lib/templates/pobject/dialog.language.save.php 1 location

@@ 7-14 (lines=8) @@
4
		error($ARnls['ariadne:err:invalidsession']);
5
		exit;
6
	}
7
	if ($this->CheckLogin("layout") && $this->CheckConfig()) {
8
		$this->call("system.save.language.php", $arCallArgs);
9
		if (!$this->error) {
10
			$this->call("window.close.objectadded.js");
11
		} else {
12
			echo "<font color='red'>$this->error</font>";
13
		}
14
	}
15
?>
16

lib/templates/pobject/dialog.priority.save.php 1 location

@@ 7-14 (lines=8) @@
4
		error($ARnls['ariadne:err:invalidsession']);
5
		exit;
6
	}
7
	if( $this->CheckLogin("edit") && $this->CheckConfig() ) {
8
		$this->call("system.save.priority.phtml", $arCallArgs);
9
		if (!$this->error) {
10
			$this->call("window.close.objectadded.js");
11
		} else {
12
			echo "<font color='red'>$this->error</font>";
13
		}
14
	}
15
?>
16