/**
* StatusNet, the distributed open-source microblogging tool
*
- * Form for forwarding a notice
+ * Form for repeating a notice
*
* PHP version 5
*
* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
+if (!defined('STATUSNET')) {
exit(1);
}
-require_once INSTALLDIR.'/lib/form.php';
-
/**
- * Form for forwarding a notice
+ * Form for repeating a notice
*
* @category Form
* @package StatusNet
* @link http://status.net/
*/
-class ForwardForm extends Form
+class RepeatForm extends Form
{
/**
- * Notice to forward
+ * Notice to repeat
*/
var $notice = null;
* Constructor
*
* @param HTMLOutputter $out output channel
- * @param Notice $notice notice to forward
+ * @param Notice $notice notice to repeat
*/
function __construct($out=null, $notice=null)
function id()
{
- return 'forward-' . $this->notice->id;
+ return 'repeat-' . $this->notice->id;
}
/**
function action()
{
- return common_local_url('forward');
+ return common_local_url('repeat');
}
/**
*/
function formLegend()
{
- $this->out->element('legend', null, _('Forward this notice'));
+ $this->out->element('legend', null, _('Repeat this notice?'));
}
/**
function formActions()
{
- $this->out->submit('forward-submit-' . $this->notice->id,
- _('Forward'), 'submit', null, _('Forward this notice'));
+ $this->out->submit('repeat-submit-' . $this->notice->id,
+ _('Yes'), 'submit', null, _('Repeat this notice'));
}
/**
function formClass()
{
- return 'form_forward';
+ return 'form_repeat';
}
}