From f0109226ce5c042ea5b6dc6c97d293b3221e0b4f Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Tue, 16 Nov 2021 10:15:05 +0100 Subject: [PATCH] Render the layout filename prop --- application/core/EA_Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/core/EA_Loader.php b/application/core/EA_Loader.php index 039c0938..a6734da8 100644 --- a/application/core/EA_Loader.php +++ b/application/core/EA_Loader.php @@ -57,7 +57,7 @@ class EA_Loader extends CI_Loader { if ($layout) { - $result = $this->_ci_load(['_ci_view' => $layout, '_ci_vars' => $this->_ci_prepare_view_vars($vars), '_ci_return' => $return]); + $result = $this->_ci_load(['_ci_view' => $layout['filename'], '_ci_vars' => $this->_ci_prepare_view_vars($vars), '_ci_return' => $return]); } return $result;