Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/02/2008 06:34:21 AM (18 years ago)
Author:
sambauers
Message:

Make Bozo and Akismet plugins. Add bb-plugins directory. Let's see how it feels for a day or two then keep or dump.

File:
1 edited

Legend:

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

    r1125 r1174  
    44$plugins = bb_get_plugins();
    55$_plugins = array();
    6 if ( function_exists( 'glob' ) && is_callable( 'glob' ) && $_plugins_glob = glob(BBPLUGINDIR . '_*.php') ) {
     6if ( function_exists( 'glob' ) && is_callable( 'glob' ) ) {
     7    $_plugins_glob = glob(BBDEFAULTPLUGINDIR . '_*.php');
    78    foreach ( $_plugins_glob as $_plugin ) {
    89        $_data = bb_get_plugin_data( $_plugin );
    910        $_plugins[$_plugin] = $_data ? $_data : true;
    1011    }
     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);
    1120}
    12 unset($_plugins_glob, $_plugin);
     21
    1322
    1423$current = (array) bb_get_option( 'active_plugins' );
     
    1625$update = false;
    1726foreach ( $current as $c => $cur )
    18     if ( !file_exists(BBPLUGINDIR . $cur) ) {
     27    if ( !file_exists(BBPLUGINDIR . $cur) && !file_exists(BBDEFAULTPLUGINDIR . $cur) ) {
    1928        $update = true;
    2029        unset($current[$c]);
Note: See TracChangeset for help on using the changeset viewer.