Conflicts:
lib/action.php
$this->out->submit('disfavor-submit-' . $this->notice->id,
_('Disfavor favorite'));
}
++
++ /**
++ * Class of the form.
++ *
++ * @return string the form's class
++ */
++
++ function formClass()
++ {
++ return 'disfavor';
++ }
++
}
$this->out->submit('favor-submit-' . $this->notice->id,
_('Make a favorite'));
}
++
++ /**
++ * Class of the form.
++ *
++ * @return string the form's class
++ */
++
++ function formClass()
++ {
++ return 'favor';
++ }
}
{
$this->out->elementStart('form',
array('id' => $this->id(),
++ 'class' => $this->formClass(),
'method' => 'POST',
'action' => $this->action()));
$this->out->elementStart('fieldset');
function action()
{
}
++
++ /**
++ * Class of the form.
++ *
++ * @return string the form's class
++ */
++
++ function formClass()
++ {
++ return 'form';
++ }
}
$user = common_current_user();
if ($user) {
if ($user->hasFave($this->notice)) {
-- common_disfavor_form($this->notice);
++ $disfavor = new DisfavorForm($this->out, $this->notice);
++ $disfavor->show();
} else {
-- common_favor_form($this->notice);
++ $favor = new FavorForm($this->out, $this->notice);
++ $favor->show();
}
}
}