Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/28/2008 12:40:56 AM (18 years ago)
Author:
sambauers
Message:

Better glob validity testing. Fixes #787. Props _ck_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/plugins.php

    r1089 r1125  
    44$plugins = bb_get_plugins();
    55$_plugins = array();
    6 if ( function_exists( 'glob' ) && is_callable( 'glob' ) ) {
    7     foreach ( glob(BBPLUGINDIR . '_*.php') as $_plugin ) {
     6if ( function_exists( 'glob' ) && is_callable( 'glob' ) && $_plugins_glob = glob(BBPLUGINDIR . '_*.php') ) {
     7    foreach ( $_plugins_glob as $_plugin ) {
    88        $_data = bb_get_plugin_data( $_plugin );
    99        $_plugins[$_plugin] = $_data ? $_data : true;
    1010    }
    1111}
     12unset($_plugins_glob, $_plugin);
    1213
    1314$current = (array) bb_get_option( 'active_plugins' );
Note: See TracChangeset for help on using the changeset viewer.