Extend Action with redirect after login logic, update some actions to use it
This commit is contained in:
committed by
Diogo Cordeiro
parent
691df04103
commit
43df2d201c
@@ -43,6 +43,8 @@ if (!defined('GNUSOCIAL')) {
|
||||
*/
|
||||
class GroupdirectoryAction extends ManagedAction
|
||||
{
|
||||
protected $redirectAfterLogin = true;
|
||||
|
||||
/**
|
||||
* The page we're on
|
||||
*
|
||||
@@ -143,8 +145,6 @@ class GroupdirectoryAction extends ManagedAction
|
||||
$this->reverse = $this->boolean('reverse');
|
||||
$this->q = $this->trimmed('q');
|
||||
$this->sort = $this->arg('sort', 'nickname');
|
||||
|
||||
common_set_returnto($this->selfUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -42,6 +42,8 @@ if (!defined('GNUSOCIAL')) {
|
||||
*/
|
||||
class UserdirectoryAction extends ManagedAction
|
||||
{
|
||||
protected $redirectAfterLogin = true;
|
||||
|
||||
/**
|
||||
* The page we're on
|
||||
*
|
||||
@@ -140,8 +142,6 @@ class UserdirectoryAction extends ManagedAction
|
||||
$this->reverse = $this->boolean('reverse');
|
||||
$this->q = $this->trimmed('q');
|
||||
$this->sort = $this->arg('sort', 'nickname');
|
||||
|
||||
common_set_returnto($this->selfUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user