From 1f9aa52a535f11d2729b9df970d99a74bfbc32e2 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 19 Nov 2005 08:20:13 +0000 Subject: [PATCH] Creating isso:null-framework global; this can't be accessed through $isso:null-framework because it's an illegal variable name. This is set when we load() because it's only used to interlock between objects when the code is executed outside the scope of the object (i.e. eval()ing something). Fixes parse error issue with phrase parser. --- kernel.php | 6 ++++++ template.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel.php b/kernel.php index 10da803..5f5959c 100644 --- a/kernel.php +++ b/kernel.php @@ -268,6 +268,12 @@ class Shared_Object_Framework */ function &load($framework, $asobject, $globalize = false) { + // set the object interlock + if ($GLOBALS['isso:null-framework'] === null) + { + $GLOBALS['isso:null-framework'] =& $this; + } + if ($this->is_loaded($framework)) { return $this->getobj($framework); diff --git a/template.php b/template.php index 34fda5d..3af69c2 100644 --- a/template.php +++ b/template.php @@ -74,7 +74,7 @@ class Template * The name of the function phrases are fetched with * @var string */ - var $langcall = '$this->registry->modules[\'localize\']->string'; + var $langcall = '$GLOBALS[\'isso:null-framework\']->modules[\'localize\']->string'; /** * The name of the function phrases are sprintf() parsed with -- 2.22.5