Permalink
Browse files

Removing auto-loading of config

  • Loading branch information...
1 parent bad2f7a commit ba3f2a8a9f3de19d082fdf5b9c59c61cfbb55e39 Andy Adams committed Oct 26, 2011
Showing with 1 addition and 8 deletions.
  1. +1 −8 classes/struts.php
View
@@ -24,11 +24,4 @@ function struts_autoloader( $class ) {
}
}
-spl_autoload_register( 'struts_autoloader' );
-
-// By default, check for a config file located at the root of Struts (typically struts/config.php)
-$config_filename = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'config.php';
-
-if ( file_exists( $config_filename ) ) {
- Struts::load_config( include $config_filename );
-}
+spl_autoload_register( 'struts_autoloader' );

0 comments on commit ba3f2a8

Please sign in to comment.