<?php

class XenForo_ViewPublic_Thread_Reply extends XenForo_ViewPublic_Base
{
	public function renderHtml()
	{
		if (!empty($this->_params['captcha']))
		{
			$this->_params['captcha'] = $this->_params['captcha']->render($this);
		}

		$this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate(
			$this, 'message', $this->_params['defaultMessage'],
			array('autoSaveUrl' => XenForo_Link::buildPublicLink('threads/save-draft', $this->_params['thread']))
		);
	}
}