Work on QnA notice display -- in progress

This commit is contained in:
Zach Copley
2011-03-21 20:57:19 -07:00
parent b0ed4cb89a
commit 7f4bd6b69f
7 changed files with 298 additions and 146 deletions

View File

@@ -63,7 +63,7 @@ class QnashowanswerAction extends ShownoticeAction
$this->id = $this->trimmed('id');
$this->answer = Answer::staticGet('id', $this->id);
$this->answer = QnA_Answer::staticGet('id', $this->id);
if (empty($this->answer)) {
throw new ClientException(_('No such answer.'), 404);
@@ -117,9 +117,11 @@ class QnashowanswerAction extends ShownoticeAction
function showPageTitle()
{
$this->elementStart('h1');
$this->element('a',
array('href' => $this->answer->url),
$this->asnwer->title);
$this->element(
'a',
array('href' => $this->answer->url),
$this->answer->title
);
$this->elementEnd('h1');
}
}