mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge pull request #23 from AndreasK79/environment_change
Changed the way environment is set
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -17,3 +17,4 @@
|
||||
sync.sh
|
||||
*.p12
|
||||
*.swp
|
||||
.debug
|
||||
@@ -4,11 +4,6 @@ class Dashboard extends CI_Controller {
|
||||
|
||||
public function index()
|
||||
{
|
||||
// If environment is set to development then show the debug toolbar
|
||||
if(ENVIRONMENT == 'development') {
|
||||
$this->output->enable_profiler(TRUE);
|
||||
}
|
||||
|
||||
// Load language files
|
||||
$this->lang->load('lotw');
|
||||
|
||||
|
||||
@@ -54,7 +54,11 @@
|
||||
* NOTE: If you change these, also change the error_reporting() code below
|
||||
*/
|
||||
#define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
|
||||
define('ENVIRONMENT', 'development');
|
||||
if (file_exists('.debug')) {
|
||||
define('ENVIRONMENT', 'development');
|
||||
} else {
|
||||
define('ENVIRONMENT', 'production');
|
||||
}
|
||||
|
||||
/*
|
||||
*---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user