123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- defined('GNUSOCIAL') || die();
- class SearchunsubAction extends SearchsubAction
- {
-
- public function handle()
- {
-
- 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);
- }
- }
- }
|