X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ffeatureduserssection.php;h=1b0718a05f5a8462592bafcb56f84399ae038808;hb=035aae2745e25d44ab9fe1b7bdffbcaa505ba970;hp=3065ff623e1218d32ebbdb35e943ee8e3f702192;hpb=865b716f0919b6e5133133cd6be53f4143660324;p=quix0rs-gnu-social.git diff --git a/lib/featureduserssection.php b/lib/featureduserssection.php index 3065ff623e..1b0718a05f 100644 --- a/lib/featureduserssection.php +++ b/lib/featureduserssection.php @@ -27,7 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } @@ -40,9 +40,17 @@ if (!defined('STATUSNET')) { * @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'); }