コード例 #1
0
ファイル: tagrss.php プロジェクト: bashrc/gnusocial-debian
 protected function doStreamPreparation()
 {
     $tag = common_canonical_tag($this->trimmed('tag'));
     $this->tag = Notice_tag::getKV('tag', $tag);
     if (!$this->tag instanceof Notice_tag) {
         // TRANS: Client error when requesting a tag feed for a non-existing tag.
         $this->clientError(_('No such tag.'));
     }
 }
コード例 #2
0
ファイル: tagrss.php プロジェクト: phpsource/gnu-social
 function prepare($args)
 {
     parent::prepare($args);
     $tag = common_canonical_tag($this->trimmed('tag'));
     $this->tag = Notice_tag::getKV('tag', $tag);
     if (!$this->tag) {
         // TRANS: Client error when requesting a tag feed for a non-existing tag.
         $this->clientError(_('No such tag.'));
     } else {
         $this->notices = $this->getNotices($this->limit);
         return true;
     }
 }