summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-07-21 19:42:35 +0200
committerRick Ellis <rick.ellis@ellislab.com>2007-07-21 19:42:35 +0200
commit6a47c119215219813f6c53b854f104d9fa16f62c (patch)
treef19052fa73166ae461d576982ac2b25895b360d9
parent55ccb39f9e73779750d1f5b07ad9527469e0805c (diff)
-rw-r--r--system/codeigniter/CodeIgniter.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index 160d86c8e..b5f21a1b7 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -132,11 +132,13 @@ load_class('Controller', FALSE);
// Load the local application controller
// Note: The Router class automatically validates the controller path. If this include fails it
// means that the default controller in the Routes.php file is not resolving to something valid.
-if ( ! include(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->fetch_class().EXT))
+if ( ! file_exists(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->fetch_class().EXT))
{
show_error('Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.');
}
+include(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->fetch_class().EXT);
+
// Set a mark point for benchmarking
$BM->mark('loading_time_base_classes_end');