var $profile;
var $err;
- protected function prepare($args)
+ protected function prepare(array $args=array())
{
parent::prepare($args);
// TRANS: Field label.
$this->input('profile', _m('Profile Account'), $this->profile,
// TRANS: Tooltip for field label "Profile Account".
- _m('Your account ID (e.g. user@identi.ca).'));
+ _m('Your account ID (e.g. user@example.com).'));
$this->elementEnd('li');
$this->elementEnd('ul');
$this->submit('submit', $submit);
function ostatusConnect()
{
+ $validate = new Validate();
$opts = array('allowed_schemes' => array('http', 'https', 'acct'));
- if (Validate::uri($this->profile, $opts)) {
+ if ($validate->uri($this->profile, $opts)) {
$bits = parse_url($this->profile);
if ($bits['scheme'] == 'acct') {
$this->connectWebfinger($bits['path']);
}
} else if ($this->group) {
$group = Local_group::getKV('nickname', $this->group);
- if ($group) {
+ if ($group instanceof Local_group) {
return common_local_url('groupbyid', array('id' => $group->group_id));
} else {
// TRANS: Client error.