Skip to:
Content

BuddyPress.org

Changeset 5324


Ignore:
Timestamp:
11/11/2011 09:38:21 PM (13 years ago)
Author:
djpaul
Message:

Fix file include paths, a typo, and a PHP warning during new installs. See #3739

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r5320 r5324  
    11<?php
    2 
    32/**
    43 * The BuddyPress Plugin
     
    354353        // search requests are loaded
    355354        //
    356         // @todo Maxe this better
     355        // @todo Make this better
    357356        if ( !defined( 'BP_SEARCH_SLUG' ) )
    358357            define( 'BP_SEARCH_SLUG', 'search' );   
     
    440439
    441440        // Get the largest version
    442         $this->db_version_raw      = (int) max( $versions );
     441        $this->db_version_raw = !empty( $versions ) ? (int) max( $versions ) : 0;
    443442
    444443        // Are we network activated?
     
    449448        if ( empty( $this->db_version_raw ) ) {
    450449            $this->maintenance_mode = 'install';
    451             require( $this->plugin_dir . '/bp-core/admin/bp-core-update.php' );
     450            require( $this->plugin_dir . 'bp-core/admin/bp-core-update.php' );
    452451
    453452        // There is a previous installation
     
    458457
    459458            // Require all of the BuddyPress core libraries
    460             require( $this->plugin_dir . '/bp-core/bp-core-caps.php'       );
    461             require( $this->plugin_dir . '/bp-core/bp-core-cache.php'      );
    462             require( $this->plugin_dir . '/bp-core/bp-core-hooks.php'      );
    463             require( $this->plugin_dir . '/bp-core/bp-core-cssjs.php'      );
    464             require( $this->plugin_dir . '/bp-core/bp-core-update.php'     );
    465             require( $this->plugin_dir . '/bp-core/bp-core-classes.php'    );
    466             require( $this->plugin_dir . '/bp-core/bp-core-filters.php'    );
    467             require( $this->plugin_dir . '/bp-core/bp-core-avatars.php'    );
    468             require( $this->plugin_dir . '/bp-core/bp-core-widgets.php'    );
    469             require( $this->plugin_dir . '/bp-core/bp-core-template.php'   );
    470             require( $this->plugin_dir . '/bp-core/bp-core-buddybar.php'   );
    471             require( $this->plugin_dir . '/bp-core/bp-core-catchuri.php'   );
    472             require( $this->plugin_dir . '/bp-core/bp-core-component.php'  );
    473             require( $this->plugin_dir . '/bp-core/bp-core-functions.php'  );
    474             require( $this->plugin_dir . '/bp-core/bp-core-moderation.php' );
    475             require( $this->plugin_dir . '/bp-core/bp-core-adminbar.php'   );
    476             require( $this->plugin_dir . '/bp-core/bp-core-loader.php'     );
     459            require( $this->plugin_dir . 'bp-core/bp-core-caps.php'       );
     460            require( $this->plugin_dir . 'bp-core/bp-core-cache.php'      );
     461            require( $this->plugin_dir . 'bp-core/bp-core-hooks.php'      );
     462            require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'      );
     463            require( $this->plugin_dir . 'bp-core/bp-core-update.php'     );
     464            require( $this->plugin_dir . 'bp-core/bp-core-classes.php'    );
     465            require( $this->plugin_dir . 'bp-core/bp-core-filters.php'    );
     466            require( $this->plugin_dir . 'bp-core/bp-core-avatars.php'    );
     467            require( $this->plugin_dir . 'bp-core/bp-core-widgets.php'    );
     468            require( $this->plugin_dir . 'bp-core/bp-core-template.php'   );
     469            require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php'   );
     470            require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php'   );
     471            require( $this->plugin_dir . 'bp-core/bp-core-component.php'  );
     472            require( $this->plugin_dir . 'bp-core/bp-core-functions.php'  );
     473            require( $this->plugin_dir . 'bp-core/bp-core-moderation.php' );
     474            require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php'   );
     475            require( $this->plugin_dir . 'bp-core/bp-core-loader.php'     );
    477476
    478477            // Skip or load deprecated content
    479478            if ( false === $this->load_deprecated ) {
    480                 require( $this->plugin_dir . '/bp-core/deprecated/1.5.php' );
    481                 require( $this->plugin_dir . '/bp-core/deprecated/1.6.php' );
     479                require( $this->plugin_dir . 'bp-core/deprecated/1.5.php' );
     480                require( $this->plugin_dir . 'bp-core/deprecated/1.6.php' );
    482481            }
    483482
     
    490489                // Only include core updater if in the admin area
    491490                if ( is_admin() ) {
    492                     require( $this->plugin_dir . '/bp-core/admin/bp-core-update.php' );
     491                    require( $this->plugin_dir . 'bp-core/admin/bp-core-update.php' );
    493492                }
    494493            }
Note: See TracChangeset for help on using the changeset viewer.