Skip to content
Browse files

Installer was removing autoload code from the config file.

  • Loading branch information...
1 parent 4614f5c commit 0ba1b73f8726d093ddcd31f11a70a9539ed9013f @philsturgeon philsturgeon committed Feb 15, 2010
Showing with 18 additions and 0 deletions.
  1. +18 −0 installer/assets/config/config.php
View
18 installer/assets/config/config.php
@@ -312,4 +312,22 @@
$config['rewrite_short_tags'] = FALSE;
+/*
+| -------------------------------------------------------------------
+| Native Auto-load
+| -------------------------------------------------------------------
+|
+| Nothing to do with cnfig/autoload.php, this allows PHP autoload to work
+| for controller types and some third-party libraries.
+|
+*/
+function __autoload($class)
+{
+ if(strpos($class, 'CI_') !== 0)
+ {
+ @include_once( APPPATH . 'libraries/'. $class . EXT );
+ }
+}
+
+
?>

0 comments on commit 0ba1b73

Please sign in to comment.
Something went wrong with that request. Please try again.