Added XHR channel for OStatus Subscribe button
This commit is contained in:
parent
f30af7047b
commit
4d050f96f3
@ -68,8 +68,20 @@ class OStatusInitAction extends Action
|
|||||||
function showForm($err = null)
|
function showForm($err = null)
|
||||||
{
|
{
|
||||||
$this->err = $err;
|
$this->err = $err;
|
||||||
|
if ($this->boolean('ajax')) {
|
||||||
|
header('Content-Type: text/xml;charset=utf-8');
|
||||||
|
$this->xw->startDocument('1.0', 'UTF-8');
|
||||||
|
$this->elementStart('html');
|
||||||
|
$this->elementStart('head');
|
||||||
|
$this->element('title', null, _('Subscribe to user'));
|
||||||
|
$this->elementEnd('head');
|
||||||
|
$this->elementStart('body');
|
||||||
|
$this->showContent();
|
||||||
|
$this->elementEnd('body');
|
||||||
|
$this->elementEnd('html');
|
||||||
|
} else {
|
||||||
$this->showPage();
|
$this->showPage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showContent()
|
function showContent()
|
||||||
|
Loading…
Reference in New Issue
Block a user