Changeset 5324
- Timestamp:
- 11/11/2011 09:38:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-loader.php
r5320 r5324 1 1 <?php 2 3 2 /** 4 3 * The BuddyPress Plugin … … 354 353 // search requests are loaded 355 354 // 356 // @todo Ma xe this better355 // @todo Make this better 357 356 if ( !defined( 'BP_SEARCH_SLUG' ) ) 358 357 define( 'BP_SEARCH_SLUG', 'search' ); … … 440 439 441 440 // Get the largest version 442 $this->db_version_raw = (int) max( $versions );441 $this->db_version_raw = !empty( $versions ) ? (int) max( $versions ) : 0; 443 442 444 443 // Are we network activated? … … 449 448 if ( empty( $this->db_version_raw ) ) { 450 449 $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' ); 452 451 453 452 // There is a previous installation … … 458 457 459 458 // 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' ); 477 476 478 477 // Skip or load deprecated content 479 478 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' ); 482 481 } 483 482 … … 490 489 // Only include core updater if in the admin area 491 490 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' ); 493 492 } 494 493 }
Note: See TracChangeset
for help on using the changeset viewer.