Changeset 3922 for trunk/bp-core/bp-core-component.php
- Timestamp:
- 01/25/2011 09:53:37 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-component.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-component.php
r3918 r3922 149 149 150 150 // Check path + file 151 if ( file_exists( $this->path . '/' . $file ) )151 if ( @is_file( $this->path . '/' . $file ) ) 152 152 require_once( $this->path . '/' . $file ); 153 153 154 154 // Check path + /bp-component/ + file 155 elseif ( file_exists( $this->path . '/bp-' . $this->id . '/' . $file ) )156 require_once( $this-> $path . '/bp-' . $this->id . '/' . $file );155 elseif ( @is_file( $this->path . '/bp-' . $this->id . '/' . $file ) ) 156 require_once( $this->path . '/bp-' . $this->id . '/' . $file ); 157 157 158 158 // Check buddypress/bp-component/bp-component-$file.php 159 elseif ( file_exists( $this->path . '/bp-' . $this->id . '/bp-' . $this->id . '-' . $file . '.php' ) )159 elseif ( @is_file( $this->path . '/bp-' . $this->id . '/bp-' . $this->id . '-' . $file . '.php' ) ) 160 160 require_once( $this->path . '/bp-' . $this->id . '/bp-' . $this->id . '-' . $file . '.php' ); 161 161
Note: See TracChangeset
for help on using the changeset viewer.