*/
function prepare($argarray)
{
- OwnerDesignAction::prepare($argarray);
+ Action::prepare($argarray);
$this->id = $this->trimmed('id');
}
if (count($answerIds) > 0) {
- $notice = new Notice();
- $notice->query(
- sprintf(
- 'SELECT notice.* FROM notice WHERE notice.id IN (%s)',
- implode(',', $answerIds)
- )
- );
+ $notice = Notice::multiGet('id', $answerIds);
$nli = new NoticeList($notice, $this);
$nli->show();
*/
function title()
{
- // TRANS: Page title for a question.
- // TRANS: %1$s is the nickname of the user who asked the question, %2$s is the question.
return sprintf(
+ // TRANS: Page title for a question.
+ // TRANS: %1$s is the nickname of the user who asked the question, %2$s is the question.
_m('%1$s\'s question: %2$s'),
$this->user->nickname,
$this->question->title
return Action::lastModified();
}
-
/**
* @fixme combine the notice time with question update time
*/