1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Removed ENV_PRODUCTION

This commit is contained in:
Hillel Coren 2015-11-22 11:59:56 +02:00
parent 9b0426f4ab
commit 5d26eadb9c
3 changed files with 1 additions and 7 deletions

View File

@ -33,7 +33,7 @@ class StartupCheck
}
// Ensure all request are over HTTPS in production
if (App::environment() == ENV_PRODUCTION && !Request::secure()) {
if (Utils::isNinjaProd() && !Request::secure()) {
return Redirect::secure(Request::getRequestUri());
}

View File

@ -247,7 +247,6 @@ if (!defined('CONTACT_EMAIL')) {
define('ENV_DEVELOPMENT', 'local');
define('ENV_STAGING', 'staging');
define('ENV_PRODUCTION', 'fortrabbit');
define('RECENTLY_VIEWED', 'RECENTLY_VIEWED');
define('ENTITY_CLIENT', 'client');

View File

@ -45,11 +45,6 @@ class Utils
return file_exists(storage_path() . '/framework/down');
}
public static function isProd()
{
return App::environment() == ENV_PRODUCTION;
}
public static function isNinja()
{
return self::isNinjaProd() || self::isNinjaDev();