Changeset 2026
- Timestamp:
- 11/02/2015 02:49:54 AM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications
- Files:
-
- 4 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php
r2024 r2026 6 6 */ 7 7 8 require __DIR__ . '/autoload.php'; 9 8 10 class wporg_trac_notifications { 9 11 … … 24 26 } 25 27 26 spl_autoload_register( array( $this, 'autoload' ) );27 28 28 if ( function_exists( 'add_db_table' ) ) { 29 29 $tables = array( 'ticket', '_ticket_subs', '_notifications', 'ticket_change', 'component', 'milestone', 'ticket_custom' ); … … 44 44 add_action( 'template_redirect', array( $this, 'action_template_redirect' ) ); 45 45 add_shortcode( 'trac-notifications', array( $this, 'notification_settings_page' ) ); 46 }47 48 function autoload( $class ) {49 $class = strtolower( $class );50 if ( 0 === strpos( $class, 'trac_notifications_' ) ) {51 require __DIR__ . '/' . str_replace( '_', '-', $class ) . '.php';52 }53 46 } 54 47
Note: See TracChangeset
for help on using the changeset viewer.