X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ffeatureduserssection.php;h=1b0718a05f5a8462592bafcb56f84399ae038808;hb=73dbc5ca1b203758693f73d6423fea71ef6b6fb6;hp=f8bdb0b7ee8eecfc2a2e5ed66192b83f6992e6d1;hpb=c8b8f07af14ad2ce9d0c0267962dd3bbf6473a4b;p=quix0rs-gnu-social.git diff --git a/lib/featureduserssection.php b/lib/featureduserssection.php index f8bdb0b7ee..1b0718a05f 100644 --- a/lib/featureduserssection.php +++ b/lib/featureduserssection.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,13 +36,21 @@ 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 FeaturedUsersSection extends ProfileSection { + function show() + { + $featured_nicks = common_config('nickname', 'featured'); + if (empty($featured_nicks)) { + return; + } + parent::show(); + } + function getProfiles() { $featured_nicks = common_config('nickname', 'featured'); @@ -84,6 +92,7 @@ class FeaturedUsersSection extends ProfileSection function title() { + // TRANS: Title for featured users section. return _('Featured users'); }