if($this->page > 1 && $this->notice->N == 0){
// TRANS: Server error when page not found (404)
- $this->serverError(_('No such page'),$code=404);
+ $this->serverError(_('No such page.'),$code=404);
}
return true;
function title()
{
if ($this->page == 1) {
+ // TRANS: Title for first page of notices with tags.
+ // TRANS: %s is the tag.
return sprintf(_('Notices tagged with %s'), $this->tag);
} else {
+ // TRANS: Title for all but the first page of notices with tags.
+ // TRANS: %1$s is the tag, %2$d is the page number.
return sprintf(_('Notices tagged with %1$s, page %2$d'),
$this->tag,
$this->page);
function showContent()
{
- $nl = new NoticeList($this->notice, $this);
+ if(Event::handle('StartTagShowContent', array($this))) {
+
+ $nl = new NoticeList($this->notice, $this);
- $cnt = $nl->show();
+ $cnt = $nl->show();
- $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
- $this->page, 'tag', array('tag' => $this->tag));
+ $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
+ $this->page, 'tag', array('tag' => $this->tag));
+
+ Event::handle('EndTagShowContent', array($this));
+ }
}
function isReadOnly($args)