* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
-}
+if (!defined('GNUSOCIAL') && !defined('STATUSNET')) { exit(1); }
class MirrorSettingsAction extends SettingsAction
{
{
// TRANS: Page instructions.
return _m('You can mirror updates from many RSS and Atom feeds ' .
- 'into your StatusNet timeline!');
+ 'into your GNU social timeline!');
}
/**
function showFeedForm($mirror)
{
- $profile = Profile::staticGet('id', $mirror->subscribed);
- if ($profile) {
+ $profile = Profile::getKV('id', $mirror->subscribed);
+
+ if ($profile instanceof Profile) {
$form = new EditMirrorForm($this, $profile);
$form->show();
}
switch ($this->arg('provider')) {
case 'statusnet':
break;
- case 'twitter':
- $form = new AddTwitterMirrorForm($this);
- break;
case 'wordpress':
break;
case 'linkedin':
*
* @todo move the ajax display handling to common code
*/
- function handle($args)
+ function handle(array $args=array())
{
if ($this->boolean('ajax')) {
- header('Content-Type: text/html;charset=utf-8');
- $this->elementStart('html');
+ $this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head');
// TRANS: Title for page with form to add a mirror feed provider on.
$this->element('title', null, _m('Provider add'));
$this->showAddFeedForm();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
return parent::handle($args);
}