Code Duplication    Length = 7-10 lines in 2 locations

includes/modules_helper.php 1 location

@@ 140-146 (lines=7) @@
137
	* @return null
138
	* @access public
139
	*/
140
	public function store_selected_forums($key)
141
	{
142
		// Get selected extensions
143
		$values = $this->request->variable($key, array(0 => ''));
144
		$news = implode(',', $values);
145
		$this->config->set($key, $news);
146
	}
147
148
	/**
149
	 * Wrapper method for controller_helper::route()

modules/attachments.php 1 location

@@ 205-214 (lines=10) @@
202
	*
203
	* @return null
204
	*/
205
	public function store_filetypes($key, $module_id)
206
	{
207
		// Get selected extensions
208
		$values = $this->request->variable($key, array(0 => ''));
209
210
		$filetypes = implode(',', $values);
211
212
		$this->config->set('board3_attachments_filetype_' . $module_id, $filetypes);
213
214
	}
215
216
	/**
217
	* Parse template variables for module