Code Duplication    Length = 5-5 lines in 2 locations

controller/comments.php 1 location

@@ 107-111 (lines=5) @@
104
		));
105
106
		// The CAPTCHA kicks in here. We can't help that the information gets lost on language change.
107
		if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm'])
108
		{
109
			$this->captcha = $this->captcha_factory->get_instance($this->config['captcha_plugin']);
110
			$this->captcha->init(CONFIRM_POST);
111
		}
112
	}
113
114
	/**

controller/links.php 1 location

@@ 260-264 (lines=5) @@
257
		$this->categorie->get($cat_id);
258
259
		// The CAPTCHA kicks in here. We can't help that the information gets lost on language change.
260
		if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm'])
261
		{
262
			$this->captcha = $this->captcha_factory->get_instance($this->config['captcha_plugin']);
263
			$this->captcha->init(CONFIRM_POST);
264
		}
265
266
		// If form is done
267
		if ($submit || $refresh)