Removed reference to Kohana::$environment