X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FQnA%2Factions%2Fqnanewanswer.php;h=5543cba06c623dbff942744d3401abcff7b8e6b2;hb=e2d85a39e7f82ceef2cb2fe66a3a9a62ac9a363e;hp=94561a154861908a0e73a5d98bd0dc1112b99934;hpb=c94d9994d898eddf654121ac45d455891954e830;p=quix0rs-gnu-social.git diff --git a/plugins/QnA/actions/qnanewanswer.php b/plugins/QnA/actions/qnanewanswer.php index 94561a1548..5543cba06c 100644 --- a/plugins/QnA/actions/qnanewanswer.php +++ b/plugins/QnA/actions/qnanewanswer.php @@ -197,7 +197,7 @@ class QnanewanswerAction extends Action * * @return boolean is read only action? */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { if ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD') { @@ -327,14 +327,7 @@ class NoticeAnswerListItem extends NoticeListItem function showContent() { $this->out->elementStart('p', array('class' => 'e-content answer-content')); - if ($this->notice->rendered) { - $this->out->raw($this->notice->rendered); - } else { - // XXX: may be some uncooked notices in the DB, - // we cook them right now. This should probably disappear in future - // versions (>> 0.4.x) - $this->out->raw(common_render_content($this->notice->content, $this->notice)); - } + $this->out->raw($this->notice->getRendered()); if (!empty($this->answer)) { $form = new QnashowanswerForm($this->out, $this->answer);