protected function handle()
 {
     // Post from the tag dropdown; redirect to a GET
     if ($this->isPost()) {
         common_redirect($this->selfUrl(), 303);
     }
     parent::handle();
 }
Example #2
0
 function handle($args)
 {
     parent::handle($args);
     if (!$this->user) {
         $this->clientError(_('No such user.'));
         return;
     }
     $this->showPage();
 }
Example #3
0
 function handle($args)
 {
     parent::handle($args);
     if (!$this->user) {
         $this->clientError(_('用户不存在'), 404);
         return;
     }
     $this->showPage();
 }
Example #4
0
 function handle($args)
 {
     parent::handle($args);
     if (!$this->user) {
         // TRANS: Client error when user not found for an action.
         $this->clientError(_('No such user.'));
         return;
     }
     $this->showPage();
 }
Example #5
0
 function handle($args)
 {
     parent::handle($args);
     // Post from the tag dropdown; redirect to a GET
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         common_redirect($this->selfUrl(), 303);
         return;
     }
     $this->showPage();
 }
Example #6
0
 function handle($args)
 {
     parent::handle($args);
     if (!$this->user) {
         $this->clientError(_('用户不存在'));
         return;
     }
     $cur = common_current_user();
     if (empty($cur) || $cur->id != $this->user->id) {
         $this->clientError(_('无法访问此用户的个人页面'));
         return;
     }
     $this->showPage();
 }
 function handle($args)
 {
     parent::handle($args);
     $this->showPage();
 }