summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-12-01 16:14:35 +0100
committerAndrey Andreev <narf@devilix.net>2016-12-01 16:14:35 +0100
commit5d6e77b092ca8f1700a7407bf59bcab6b0e30808 (patch)
treedd1742a5d2fc544cc954ffc51556f1f36457b947 /system/core
parent8db01f13809a92bac7bc95b02893175d7654d627 (diff)
[ci skip] Fix #4928
Diffstat (limited to 'system/core')
-rw-r--r--system/core/CodeIgniter.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/core/CodeIgniter.php b/system/core/CodeIgniter.php
index 71656be29..c9cb5c89f 100644
--- a/system/core/CodeIgniter.php
+++ b/system/core/CodeIgniter.php
@@ -67,7 +67,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
require_once(APPPATH.'config/'.ENVIRONMENT.'/constants.php');
}
- require_once(APPPATH.'config/constants.php');
+ if (file_exists(APPPATH.'config/constants.php'))
+ {
+ require_once(APPPATH.'config/constants.php');
+ }
/*
* ------------------------------------------------------