]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/featureduserssection.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / lib / featureduserssection.php
index 3065ff623e1218d32ebbdb35e943ee8e3f702192..1b0718a05f5a8462592bafcb56f84399ae038808 100644 (file)
@@ -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');
     }