Changeset 1174 for trunk/bb-admin/plugins.php
- Timestamp:
- 03/02/2008 06:34:21 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/bb-admin/plugins.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-admin/plugins.php
r1125 r1174 4 4 $plugins = bb_get_plugins(); 5 5 $_plugins = array(); 6 if ( function_exists( 'glob' ) && is_callable( 'glob' ) && $_plugins_glob = glob(BBPLUGINDIR . '_*.php') ) { 6 if ( function_exists( 'glob' ) && is_callable( 'glob' ) ) { 7 $_plugins_glob = glob(BBDEFAULTPLUGINDIR . '_*.php'); 7 8 foreach ( $_plugins_glob as $_plugin ) { 8 9 $_data = bb_get_plugin_data( $_plugin ); 9 10 $_plugins[$_plugin] = $_data ? $_data : true; 10 11 } 12 unset($_plugins_glob, $_data, $_plugin); 13 14 $_plugins_glob = glob(BBPLUGINDIR . '_*.php'); 15 foreach ( $_plugins_glob as $_plugin ) { 16 $_data = bb_get_plugin_data( $_plugin ); 17 $_plugins[$_plugin] = $_data ? $_data : true; 18 } 19 unset($_plugins_glob, $_data, $_plugin); 11 20 } 12 unset($_plugins_glob, $_plugin); 21 13 22 14 23 $current = (array) bb_get_option( 'active_plugins' ); … … 16 25 $update = false; 17 26 foreach ( $current as $c => $cur ) 18 if ( !file_exists(BBPLUGINDIR . $cur) ) {27 if ( !file_exists(BBPLUGINDIR . $cur) && !file_exists(BBDEFAULTPLUGINDIR . $cur) ) { 19 28 $update = true; 20 29 unset($current[$c]);
Note: See TracChangeset
for help on using the changeset viewer.