From 30dd61eb23d64f26c595ffe5c95d8fc2ee328753 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 7 Oct 2016 13:59:45 +0200 Subject: Disable special handling of {elapsed_time} and {memory_usage} Documentation says that the variable can be set from the controller, but it's protected and thus throws and exception. Good documentation is hard to come by... Signed-off-by: Florian Pritz --- application/core/MY_Output.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 application/core/MY_Output.php (limited to 'application/core') diff --git a/application/core/MY_Output.php b/application/core/MY_Output.php new file mode 100644 index 000000000..402e46c80 --- /dev/null +++ b/application/core/MY_Output.php @@ -0,0 +1,16 @@ + + * + * Licensed under AGPLv3 + * (see COPYING for full license text) + * + */ + +class MY_Output extends CI_Output { + public function __construct() + { + parent::__construct(); + $this->parse_exec_vars = false; + } +} -- cgit v1.2.3-24-g4f1b