From 72c9e85f5d8aa55e728bed8bc4d4dcbff11379d4 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Tue, 10 Sep 2013 19:57:23 -0400 Subject: [PATCH] Added the template variable to the new scope logic --- classes/Display/PHP.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/Display/PHP.php b/classes/Display/PHP.php index f593345..b537079 100644 --- a/classes/Display/PHP.php +++ b/classes/Display/PHP.php @@ -104,12 +104,16 @@ class Display_PHP extends Display_Common $__template = $this->child_template; } + $this->template = $__template; + require_once $this->parent_template; } elseif ($this->child_template != null) { $__template = $this->child_template; + $this->template = $__template; + require_once $__template; }