Turn GroupdirectoryAction into a ManagedAction
This commit is contained in:
parent
52e0ce8b06
commit
a254f38a23
@ -39,7 +39,7 @@ if (!defined('GNUSOCIAL')) { exit(1); }
|
|||||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
|
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
|
||||||
* @link http://status.net/
|
* @link http://status.net/
|
||||||
*/
|
*/
|
||||||
class GroupdirectoryAction extends Action
|
class GroupdirectoryAction extends ManagedAction
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The page we're on
|
* The page we're on
|
||||||
@ -134,17 +134,8 @@ class GroupdirectoryAction extends Action
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
protected function doPreparation()
|
||||||
* Take arguments for running
|
|
||||||
*
|
|
||||||
* @param array $args $_REQUEST args
|
|
||||||
*
|
|
||||||
* @return boolean success flag
|
|
||||||
*/
|
|
||||||
function prepare($args)
|
|
||||||
{
|
{
|
||||||
parent::prepare($args);
|
|
||||||
|
|
||||||
$this->page = ($this->arg('page')) ? ($this->arg('page') + 0) : 1;
|
$this->page = ($this->arg('page')) ? ($this->arg('page') + 0) : 1;
|
||||||
$this->filter = $this->arg('filter', 'all');
|
$this->filter = $this->arg('filter', 'all');
|
||||||
$this->reverse = $this->boolean('reverse');
|
$this->reverse = $this->boolean('reverse');
|
||||||
@ -156,21 +147,6 @@ class GroupdirectoryAction extends Action
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Handle request
|
|
||||||
*
|
|
||||||
* Shows the page
|
|
||||||
*
|
|
||||||
* @param array $args $_REQUEST args; handled in prepare()
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function handle($args)
|
|
||||||
{
|
|
||||||
parent::handle($args);
|
|
||||||
$this->showPage();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the page notice
|
* Show the page notice
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user