NobuNobu
nobun****@users*****
2006年 11月 10日 (金) 23:29:36 JST
Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.10 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.11 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.10 Fri Nov 10 01:00:14 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php Fri Nov 10 23:29:36 2006 @@ -1,6 +1,6 @@ <?php /** - * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.30.2.10 2006/11/09 16:00:14 minahito Exp $ + * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.30.2.11 2006/11/10 14:29:36 nobunobu Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -61,6 +61,7 @@ function &get_template_vars($name = null) { + $root =& XCube_Root::getSingleton(); if (!isset($name)) { foreach ($this->_mContextReserve as $t_key => $t_value) { $this->_tpl_vars[$t_key] = htmlspecialchars($root->mContext->getAttribute($this->_mContextReserve[$t_value]), ENT_QUOTES); @@ -68,7 +69,6 @@ return parent::get_template_vars($name); } elseif (isset($this->_mContextReserve[$name])) { - $root =& XCube_Root::getSingleton(); $value = htmlspecialchars($root->mContext->getAttribute($this->_mContextReserve[$name]), ENT_QUOTES); } else {