Changeset 3631 for trunk/bp-forums.php
- Timestamp:
- 12/31/2010 05:49:36 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r3627 r3631 51 51 } 52 52 53 /** 54 * Convenience function to determine if the forum directory has been disabled 55 * by the site admin. 56 * 57 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals() 58 * @return bool True if forum is disabled 59 * @since 1.3 60 */ 61 function bp_forum_directory_is_disabled() { 62 global $bp; 63 64 return !empty( $bp->site_options['bp-disable-forum-directory'] ); 65 } 66 53 67 function bp_forums_directory_forums_setup() { 54 68 global $bp; 55 69 56 70 if ( $bp->current_component == $bp->forums->slug ) { 57 if ( (int) $bp->site_options['bp-disable-forum-directory']|| !bp_is_active( 'groups' ) )71 if ( bp_forum_directory_is_disabled() || !bp_is_active( 'groups' ) ) 58 72 return false; 59 73
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)