X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgroupsbypostssection.php;h=d0fadcb4506eccce19a9af4c65ce493c2fe664bf;hb=1ae5ea8f4cf40113a14a183b754101177f99ba32;hp=1fdb6ed7b76ae9928c0af792f544f548f5948dc5;hpb=c8b8f07af14ad2ce9d0c0267962dd3bbf6473a4b;p=quix0rs-gnu-social.git diff --git a/lib/groupsbypostssection.php b/lib/groupsbypostssection.php index 1fdb6ed7b7..d0fadcb450 100644 --- a/lib/groupsbypostssection.php +++ b/lib/groupsbypostssection.php @@ -21,13 +21,13 @@ * * @category Widget * @package StatusNet - * @author Evan Prodromou + * @author Evan Prodromou * @copyright 2009 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ -if (!defined('LACONICA')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } @@ -36,11 +36,10 @@ if (!defined('LACONICA')) { * * @category Widget * @package StatusNet - * @author Evan Prodromou + * @author Evan Prodromou * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ - class GroupsByPostsSection extends GroupSection { function getGroups() @@ -48,7 +47,7 @@ class GroupsByPostsSection extends GroupSection $qry = 'SELECT user_group.*, count(*) as value ' . 'FROM user_group JOIN group_inbox '. 'ON user_group.id = group_inbox.group_id ' . - 'GROUP BY user_group.id,user_group.nickname,user_group.fullname,user_group.homepage,user_group.description,user_group.location,user_group.original_logo,user_group.homepage_logo,user_group.stream_logo,user_group.mini_logo,user_group.created,user_group.modified,user_group.design_id ' . + 'GROUP BY user_group.id,user_group.nickname,user_group.fullname,user_group.homepage,user_group.description,user_group.location,user_group.original_logo,user_group.homepage_logo,user_group.stream_logo,user_group.mini_logo,user_group.created,user_group.modified ' . 'ORDER BY value DESC '; $limit = GROUPS_PER_SECTION; @@ -68,7 +67,8 @@ class GroupsByPostsSection extends GroupSection function title() { - return _('Groups with most posts'); + // TRANS: Title for groups with the most posts section. + return _('Active groups'); } function divId()