From: <ma...@us...> - 2012-05-06 09:13:01
|
Revision: 9439 http://xoops.svn.sourceforge.net/xoops/?rev=9439&view=rev Author: mageg Date: 2012-05-06 09:12:55 +0000 (Sun, 06 May 2012) Log Message: ----------- Update new forms Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/themeform.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/themeform.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/themeform.php 2012-05-05 21:08:10 UTC (rev 9438) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/themeform.php 2012-05-06 09:12:55 UTC (rev 9439) @@ -55,7 +55,7 @@ * * @return string */ - public function render() + public function render($template = true) { $xoops = Xoops::getInstance(); $xoops->theme->addStylesheet('media/xoops/css/form.css'); @@ -102,7 +102,9 @@ } $xoops->tpl->assign('hidden', $hidden); $xoops->tpl->assign('validationJS', $this->renderValidationJS(true)); - $xoops->tpl->display('module:system|system_form.html'); - $xoops->tpl->clear_assign('xo_input'); + if ($xoops->tpl_name == '' || $template == false) { + $xoops->tpl->display('module:system|system_form.html'); + $xoops->tpl->clear_assign('xo_input'); + } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |