Application cleanup
This commit is contained in:
@@ -51,22 +51,6 @@ abstract class Kohana extends Kohana_Core {
|
||||
return $x;
|
||||
}
|
||||
|
||||
/**
|
||||
* @compat Restore KH 3.1 functionality
|
||||
* @var boolean True if Kohana is running from the command line
|
||||
*/
|
||||
public static $is_cli = FALSE;
|
||||
|
||||
/**
|
||||
* @compat Restore KH 3.1 functionality
|
||||
*/
|
||||
public static function init(array $settings = NULL) {
|
||||
parent::init($settings);
|
||||
|
||||
// Determine if we are running in a command line environment
|
||||
Kohana::$is_cli = (PHP_SAPI === 'cli');
|
||||
}
|
||||
|
||||
/**
|
||||
* Override Kohana's shutdown_handler()
|
||||
*
|
||||
|
Reference in New Issue
Block a user