| @@ -1,16 +1,16 @@ | ||
| 1 | -<?php | |
| 2 | -spl_autoload_register( 'bbp_core_autoloader' ); | |
| 3 | - | |
| 4 | -/** | |
| 5 | - * Autoload files for the plugin | |
| 6 | - * | |
| 7 | - * @param string $class | |
| 8 | - * @return void | |
| 9 | - */ | |
| 10 | -function bbp_core_autoloader( $class ) { | |
| 11 | - $path = __DIR__ . '/includes/' . str_replace( '\\', '/', $class ) . '.php'; | |
| 12 | - | |
| 13 | - if ( file_exists( $path ) ) { | |
| 14 | - include_once $path; | |
| 15 | - } | |
| 16 | -} | |
| 1 | +<?php | |
| 2 | +spl_autoload_register( 'forumax_autoloader' ); | |
| 3 | + | |
| 4 | +/** | |
| 5 | + * Autoload files for the plugin | |
| 6 | + * | |
| 7 | + * @param string $class | |
| 8 | + * @return void | |
| 9 | + */ | |
| 10 | +function forumax_autoloader( $class ) { | |
| 11 | + $path = __DIR__ . '/includes/' . str_replace( '\\', '/', $class ) . '.php'; | |
| 12 | + | |
| 13 | + if ( file_exists( $path ) ) { | |
| 14 | + include_once $path; | |
| 15 | + } | |
| 16 | +} | |