From a0b016905a3540c05be5d0c480ca83cdd58ad850 Mon Sep 17 00:00:00 2001 From: Christian Mohr Date: Wed, 3 Jan 2018 14:56:09 +0100 Subject: prevent _ci_vars from being cached in _ci_cached_vars Signed-off-by: Christian Mohr --- system/core/Loader.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/system/core/Loader.php b/system/core/Loader.php index 5b051e1a8..98db8d4f7 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -938,11 +938,10 @@ class CI_Loader { * * You can either set variables using the dedicated $this->load->vars() * function or via the second parameter of this function. We'll merge - * the two types and cache them so that views that are embedded within - * other views can have access to these variables. + * the two types. */ - empty($_ci_vars) OR $this->_ci_cached_vars = array_merge($this->_ci_cached_vars, $_ci_vars); - extract($this->_ci_cached_vars); + empty($this->_ci_cached_vars) OR $_ci_vars = array_merge($this->_ci_cached_vars, $_ci_vars); + extract($_ci_vars); /** * Buffer the output -- cgit v1.2.3-24-g4f1b