X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftopposterssection.php;h=c62150421596e75a818a72a27102a7aaa571b01d;hb=14fe22e4307044f2eb08264a7b83f9c2de245dba;hp=4bd59ac7971cfba0384a70c3e00f5c61c6166143;hpb=8a65c5175c3b734d4c53d6a3c3af51c5a645dff2;p=quix0rs-gnu-social.git diff --git a/lib/topposterssection.php b/lib/topposterssection.php index 4bd59ac797..c621504215 100644 --- a/lib/topposterssection.php +++ b/lib/topposterssection.php @@ -1,6 +1,6 @@ . * * @category Widget - * @package Laconica - * @author Evan Prodromou - * @copyright 2009 Control Yourself, Inc. + * @package StatusNet + * @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); } @@ -38,12 +38,11 @@ if (!defined('LACONICA')) { * group, or site. * * @category Widget - * @package Laconica - * @author Evan Prodromou + * @package StatusNet + * @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 TopPostersSection extends ProfileSection { function getProfiles() @@ -51,7 +50,7 @@ class TopPostersSection extends ProfileSection $qry = 'SELECT profile.*, count(*) as value ' . 'FROM profile JOIN notice ON profile.id = notice.profile_id ' . (common_config('public', 'localonly') ? 'WHERE is_local = 1 ' : '') . - 'GROUP BY profile.id ' . + 'GROUP BY profile.id,nickname,fullname,profileurl,homepage,bio,location,profile.created,profile.modified,textsearch ' . 'ORDER BY value DESC '; $limit = PROFILES_PER_SECTION; @@ -71,6 +70,7 @@ class TopPostersSection extends ProfileSection function title() { + // TRANS: Title for top posters section. return _('Top posters'); }