Show
Ignore:
Timestamp:
03/07/2008 02:19:56 PM (9 months ago)
Author:
Shadowhand
Message:

Creating the IN_PRODUCTION flag, and access protection for module demo controllers.

Files:
1 modified

Legend:

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

    r2214 r2229  
    215215                        // Make sure the controller class exists 
    216216                        class_exists($controller, FALSE) or Event::run('system.404'); 
     217 
     218                        // Production enviroment protection, based on the IN_PRODUCTION flag 
     219                        (IN_PRODUCTION AND constant($controller.'::ALLOW_PRODUCTION') === FALSE) and Event::run('system.404'); 
    217220 
    218221                        // Run system.pre_controller