123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- class SearchunsubAction extends SearchsubAction
- {
-
- function handle($args)
- {
-
- SearchSub::cancel($this->user->getProfile(),
- $this->search);
- if ($this->boolean('ajax')) {
- $this->startHTML('text/xml;charset=utf-8');
- $this->elementStart('head');
-
- $this->element('title', null, _m('Unsubscribed'));
- $this->elementEnd('head');
- $this->elementStart('body');
- $subscribe = new SearchSubForm($this, $this->search);
- $subscribe->show();
- $this->elementEnd('body');
- $this->endHTML();
- } else {
- $url = common_local_url('search',
- array('search' => $this->search));
- common_redirect($url, 303);
- }
- }
- }
|