forked from extern/egroupware
etemplates send its output now for HEAD through the xslt-framework
This commit is contained in:
parent
122bddb15f
commit
b7dfc2ef9d
@ -110,12 +110,19 @@
|
||||
{
|
||||
$changes = array();
|
||||
}
|
||||
if ($this->stable)
|
||||
{
|
||||
$hooked = $GLOBALS['phpgw']->template->get_var('phpgw_body');
|
||||
|
||||
if (!@$GLOBALS['phpgw_info']['etemplate']['hooked'])
|
||||
{
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$hooked = $GLOBALS['phpgw']->xslttpl->get_var('phpgw');
|
||||
$hooked = $hooked['body_data'];
|
||||
}
|
||||
if ($GLOBALS['phpgw_info']['flags']['currentapp'] != 'etemplate')
|
||||
{
|
||||
$GLOBALS['phpgw']->translation->add_app('etemplate'); // some extensions have own texts
|
||||
@ -159,8 +166,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
$html = str_replace('${','${',$html); // else {} eg.'${test}' -> '$' got removed by template-class
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body',$html,True);
|
||||
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('body_data' => $html));
|
||||
}
|
||||
}
|
||||
|
||||
@ -199,9 +205,16 @@
|
||||
if ($GLOBALS['phpgw_info']['etemplate']['loop'])
|
||||
{
|
||||
if ($session_data['hooked'] != '') // set previous phpgw_body if we are called as hook
|
||||
{
|
||||
if ($this->stable)
|
||||
{
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body',$session_data['hooked']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('body_data' => $session_data['hooked']));
|
||||
}
|
||||
}
|
||||
//echo "<p>process_exec($this->name): <font color=red>loop is set</font>, content=</p>\n"; _debug_array($content);
|
||||
$this->exec($session_data['method'],$session_data['content'],$session_data['sel_options'],
|
||||
$session_data['readonlys'],$session_data['preserv'],$content);
|
||||
|
Loading…
Reference in New Issue
Block a user