Changeset 4596 for trunk/bp-forums/bp-forums-functions.php
- Timestamp:
- 07/04/2011 02:07:08 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-functions.php
r4400 r4596 12 12 13 13 /** 14 * Convenience function to determine if the forum directory has been disabled 15 * by the site admin. 14 * Checks $bp pages global and looks for directory page 15 * 16 * @since 1.3 16 17 * 17 18 * @global object $bp Global BuddyPress settings object 18 * @return bool True if forum is disabled 19 * @since 1.3 19 * @return bool True if set, False if empty 20 20 */ 21 function bp_forum _directory_is_disabled() {22 global $bp; 23 24 return !empty( $bp->site_options['bp-disable-forum-directory']);21 function bp_forums_has_directory() { 22 global $bp; 23 24 return (bool) !empty( $bp->pages->forums->id ); 25 25 } 26 26
Note: See TracChangeset
for help on using the changeset viewer.