]> git.mxchange.org Git - friendica.git/commitdiff
forumlist: move include to header
authorrabuzarus <>
Tue, 10 Nov 2015 18:23:45 +0000 (19:23 +0100)
committerrabuzarus <>
Tue, 10 Nov 2015 18:23:45 +0000 (19:23 +0100)
include/identity.php

index fad7c99ddc70153482b5c81cbfa246ed58991edb..3e7c6ed3c0199e623cb93c6174ce04bc8e0a80cb 100644 (file)
@@ -1,4 +1,9 @@
 <?php
+/*
+ * @file include/identity.php
+ */
+
+require_once('include/forums.php');
 
 
 /**
@@ -607,8 +612,6 @@ function advanced_profile(&$a) {
        
                //show subcribed forum if it is enabled in the usersettings
                if (feature_enabled($uid,'forumlist_profile')) {
-                       require_once('include/forums.php');
-                       $show_forumlist = true;
                        $profile['forumlist'] = array( t('Forums:'), forumlist_profile_advanced($uid));
                }