Changeset 7516 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/index.php
- Timestamp:
- 07/28/2018 12:46:28 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/index.php
r7465 r7516 32 32 33 33 /** 34 * Get the path for the includes directory. 35 * 36 * @return string Path with trailing slash. 37 */ 38 function get_includes_dir_path() { 39 return trailingslashit( PLUGIN_DIR ) . 'includes/'; 40 } 41 42 /** 34 43 * Get the path for the views directory. 35 44 * … … 57 66 return trailingslashit( PLUGIN_URL ) . 'assets/'; 58 67 } 68 69 /** 70 * Autoload all the files in the includes directory. 71 * 72 * @return void 73 */ 74 function load_includes() { 75 foreach ( glob( get_includes_dir_path() . '*.php' ) as $filename ) { 76 if ( is_readable( $filename ) ) { 77 include_once ( $filename ); 78 } 79 } 80 } 81 82 add_action( 'plugins_loaded', __NAMESPACE__ . '\load_includes' ); 59 83 60 84 /** … … 110 134 __NAMESPACE__ . '\Report\Payment_Activity', 111 135 __NAMESPACE__ . '\Report\Sponsorship_Grants', 136 __NAMESPACE__ . '\Report\WordCamp_Details', 112 137 __NAMESPACE__ . '\Report\WordCamp_Status', 113 138 __NAMESPACE__ . '\Report\Meetup_Groups',
Note: See TracChangeset
for help on using the changeset viewer.