From 688077272623a0cd635ff47f4811fe50552080e7 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Fri, 18 Nov 2016 10:43:06 -0500 Subject: [PATCH] detect production correctly --- web/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/index.php b/web/index.php index d24cf0af..0fdf5ee7 100644 --- a/web/index.php +++ b/web/index.php @@ -8,7 +8,7 @@ if (php_sapi_name() === 'cli-server' && is_file(__DIR__.preg_replace('#(\?.*)$#' include __DIR__ . '/../bootstrap.php'; -define('IS_PRODUCTION', Request::getServerName() == 'lbry.io'); +define('IS_PRODUCTION', Config::get('is_prod')); ini_set('display_errors', IS_PRODUCTION ? 'off' : 'on'); error_reporting(IS_PRODUCTION ? 0 : (E_ALL | E_STRICT));