diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index b5f21a1..16fe97a 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -181,8 +181,10 @@
 // Mark a start point so we can benchmark the controller

 $BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');

 

-// Instantiate the Controller

-$CI = new $class();

+// Instantiate the Controller and pass any global data that might exist

+$global_data = ( ! isset($global_data)) ? NULL : $global_data;

+

+$CI = new $class($global_data);

 

 // Is this a scaffolding request?

 if ($RTR->scaffolding_request === TRUE)