forked from GNUsocial/gnu-social
* Move stuff around again
* Make answers save
This commit is contained in:
@@ -44,7 +44,7 @@ if (!defined('STATUSNET')) {
|
||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
||||
* @link http://status.net/
|
||||
*/
|
||||
class AnswerForm extends Form
|
||||
class QnaanswerForm extends Form
|
||||
{
|
||||
protected $question;
|
||||
|
||||
@@ -89,7 +89,7 @@ class AnswerForm extends Form
|
||||
*/
|
||||
function action()
|
||||
{
|
||||
return common_local_url('answer', array('id' => $this->question->id));
|
||||
return common_local_url('qnanewanswer', array('id' => $this->question->id));
|
||||
}
|
||||
|
||||
/**
|
@@ -44,7 +44,7 @@ if (!defined('STATUSNET')) {
|
||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
||||
* @link http://status.net/
|
||||
*/
|
||||
class QuestionForm extends Form
|
||||
class QnaquestionForm extends Form
|
||||
{
|
||||
protected $title;
|
||||
protected $description;
|
||||
@@ -90,7 +90,7 @@ class QuestionForm extends Form
|
||||
*/
|
||||
function action()
|
||||
{
|
||||
return common_local_url('newquestion');
|
||||
return common_local_url('qnanewquestion');
|
||||
}
|
||||
|
||||
/**
|
@@ -44,7 +44,7 @@ if (!defined('STATUSNET')) {
|
||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
||||
* @link http://status.net/
|
||||
*/
|
||||
class AnswerForm extends Form
|
||||
class QnavoteForm extends Form
|
||||
{
|
||||
protected $question;
|
||||
|
||||
@@ -89,7 +89,7 @@ class AnswerForm extends Form
|
||||
*/
|
||||
function action()
|
||||
{
|
||||
return common_local_url('answer', array('id' => $this->question->id));
|
||||
return common_local_url('qnavote', array('id' => $this->question->id));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -104,7 +104,7 @@ class AnswerForm extends Form
|
||||
$id = "question-" . $question->id;
|
||||
|
||||
$out->element('p', 'answer', $question->question);
|
||||
$out->element('input', array('type' => 'text', 'name' => 'answer'));
|
||||
$out->element('input', array('type' => 'text', 'name' => 'vote'));
|
||||
}
|
||||
|
||||
/**
|
Reference in New Issue
Block a user