Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/05/2008 03:04:27 AM (18 years ago)
Author:
sambauers
Message:

Deprecate old constants in favour of BB_XXX and $bb->xxx

File:
1 edited

Legend:

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

    r1185 r1220  
    1212    unset($_plugins_glob, $_data, $_plugin);
    1313   
    14     $_plugins_glob = glob(BBPLUGINDIR . '_*.php');
     14    $_plugins_glob = glob(BB_PLUGIN_DIR . '_*.php');
    1515    foreach ( $_plugins_glob as $_plugin ) {
    1616        $_data = bb_get_plugin_data( $_plugin );
     
    2525$update = false;
    2626foreach ( $current as $c => $cur )
    27     if ( !file_exists(BBPLUGINDIR . $cur) && !file_exists(BB_CORE_PLUGIN_DIR . $cur) ) {
     27    if ( !file_exists(BB_PLUGIN_DIR . $cur) && !file_exists(BB_CORE_PLUGIN_DIR . $cur) ) {
    2828        $update = true;
    2929        unset($current[$c]);
     
    3939        elseif ( !in_array($plugin, $current) ) {
    4040            wp_redirect( 'plugins.php?message=error' ); // we'll override this later if the plugin can be included without fatal error
    41             @include( BBPLUGINDIR . $plugin );
     41            @include( BB_PLUGIN_DIR . $plugin );
    4242            $current[] = $plugin;
    4343            ksort($current);
Note: See TracChangeset for help on using the changeset viewer.