forked from GNUsocial/gnu-social
* i18n review/translator hints added.
* whitespace updates. * added @todo because of missing plugin description. I wasn't able to find out what this does exactly quick enough.
This commit is contained in:
parent
2188b6d501
commit
04b70219db
@ -106,4 +106,31 @@ class SlicedFavoritesPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provide plugin version information.
|
||||||
|
*
|
||||||
|
* This data is used when showing the version page.
|
||||||
|
*
|
||||||
|
* @param array &$versions array of version data arrays; see EVENTS.txt
|
||||||
|
*
|
||||||
|
* @return boolean hook value
|
||||||
|
* @todo Needs a proper plugin description.
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
function onPluginVersion(&$versions)
|
||||||
|
{
|
||||||
|
$url = 'http://status.net/wiki/Plugin:SlicedFavorites';
|
||||||
|
|
||||||
|
$versions[] = array('name' => 'SlicedFavorites',
|
||||||
|
'version' => STATUSNET_VERSION,
|
||||||
|
'author' => 'Brion Vibber',
|
||||||
|
'homepage' => $url,
|
||||||
|
'rawdescription' =>
|
||||||
|
// TRANS: Plugin description.
|
||||||
|
_m('Needs a proper plugin description.'));
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class FavoritedSliceAction extends FavoritedAction
|
class FavoritedSliceAction extends FavoritedAction
|
||||||
{
|
{
|
||||||
private $includeUsers = array(), $excludeUsers = array();
|
private $includeUsers = array(), $excludeUsers = array();
|
||||||
@ -46,7 +45,6 @@ class FavoritedSliceAction extends FavoritedAction
|
|||||||
*
|
*
|
||||||
* @todo move queries from showContent() to here
|
* @todo move queries from showContent() to here
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function prepare($args)
|
function prepare($args)
|
||||||
{
|
{
|
||||||
parent::prepare($args);
|
parent::prepare($args);
|
||||||
@ -54,6 +52,7 @@ class FavoritedSliceAction extends FavoritedAction
|
|||||||
$this->slice = $this->arg('slice', 'default');
|
$this->slice = $this->arg('slice', 'default');
|
||||||
$data = array();
|
$data = array();
|
||||||
if (Event::handle('SlicedFavoritesGetSettings', array($this->slice, &$data))) {
|
if (Event::handle('SlicedFavoritesGetSettings', array($this->slice, &$data))) {
|
||||||
|
// TRANS: Client exception.
|
||||||
throw new ClientException(_m('Unknown favorites slice.'));
|
throw new ClientException(_m('Unknown favorites slice.'));
|
||||||
}
|
}
|
||||||
if (isset($data['include'])) {
|
if (isset($data['include'])) {
|
||||||
@ -73,7 +72,6 @@ class FavoritedSliceAction extends FavoritedAction
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function showContent()
|
function showContent()
|
||||||
{
|
{
|
||||||
$slice = $this->sliceWhereClause();
|
$slice = $this->sliceWhereClause();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user