Show
Ignore:
Timestamp:
01/20/2008 05:14:16 PM (12 months ago)
Author:
Shadowhand
Message:

Follow up to r1753:

  • Removed URI::construct()
  • Loader, URI, and Input will only be loaded for the first Controller
  • Slight optimizations to Kohana::instance()
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Kohana.php

    r1753 r1754  
    1313 
    1414        // The singleton instance of the controller 
    15         public static $instance = NULL; 
     15        public static $instance; 
    1616 
    1717        // Output buffering level 
     
    177177        final public static function & instance() 
    178178        { 
    179                 if (self::$instance == FALSE) 
     179                if (self::$instance === NULL) 
    180180                { 
    181181                        Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup'); 
     
    228228                        } 
    229229 
    230                         // Load the controller 
    231                         $controller = new $controller(); 
     230                        // Initialize the controller 
     231                        $controller = new $controller; 
    232232 
    233233                        // Run system.post_controller_constructor