function getPluginFile($filename, &$error, &$reason)
	{
		//check to see if a path is defined
		$path = $this->params->get('source_path');
		if (empty($path)) {
			$error = 1;
			$reason = Text::_('SET_PATH_FIRST');
		}

		$mod_file = $path . $filename;

		//see if the file exists
		if (!file_exists($mod_file) && $error == 0) {
			$error = 1;
			$reason = Text::_('NO_FILE_FOUND');
		}
		return $mod_file;
	}