forumlist: move include to header
This commit is contained in:
parent
abf9ebd466
commit
dd58a713d8
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue