Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/02/2008 01:29:28 AM (18 years ago)
Author:
sambauers
Message:

Return glob tests as the function may be turned off on some web hosts.

File:
1 edited

Legend:

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

    r1088 r1089  
    44$plugins = bb_get_plugins();
    55$_plugins = array();
    6 foreach ( glob(BBPLUGINDIR . '_*.php') as $_plugin ) {
    7     $_data = bb_get_plugin_data( $_plugin );
    8     $_plugins[$_plugin] = $_data ? $_data : true;
     6if ( function_exists( 'glob' ) && is_callable( 'glob' ) ) {
     7    foreach ( glob(BBPLUGINDIR . '_*.php') as $_plugin ) {
     8        $_data = bb_get_plugin_data( $_plugin );
     9        $_plugins[$_plugin] = $_data ? $_data : true;
     10    }
    911}
    1012
Note: See TracChangeset for help on using the changeset viewer.