From a3dcd98f6ec721b709a7fee982f6e790e1e53328 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 4 Sep 2013 16:47:48 +0200 Subject: Add support for enabling the profiler Signed-off-by: Florian Pritz --- application/core/MY_Controller.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'application/core/MY_Controller.php') diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php index 008c48dec..b3a561032 100644 --- a/application/core/MY_Controller.php +++ b/application/core/MY_Controller.php @@ -92,6 +92,10 @@ class MY_Controller extends CI_Controller { $this->security->csrf_verify(); } + if ($this->config->item("environment") == "development" && static_storage("response_type") != "json") { + $this->output->enable_profiler(true); + } + $this->data['title'] = "FileBin"; } } -- cgit v1.2.3-24-g4f1b