X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ffeatureduserssection.php;h=1b0718a05f5a8462592bafcb56f84399ae038808;hb=fffacaa27c45db37196cfaac5b7e098c5afcf952;hp=f0753a25ed997391191df748cad43c755ace375a;hpb=a08c76a4342cfb4b3d772f6880ba0b8f3153b246;p=quix0rs-gnu-social.git diff --git a/lib/featureduserssection.php b/lib/featureduserssection.php index f0753a25ed..1b0718a05f 100644 --- a/lib/featureduserssection.php +++ b/lib/featureduserssection.php @@ -40,9 +40,17 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @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'); }