forked from extern/egroupware
fixed broken formatting of the home-page:
content of the apps was not in the designated table-cells, but echoed by the hooks
This commit is contained in:
parent
f54a3e1627
commit
10ab662e37
@ -262,14 +262,16 @@ foreach($sorted_apps as $appname)
|
||||
$GLOBALS['tpl']->pfp('out','begin_row');
|
||||
$tropen=1;
|
||||
}
|
||||
$tdwidth = ($thisd==2)?'50':'100';
|
||||
$colspan = ($thisd==2)?'1':'2';
|
||||
|
||||
$result = $GLOBALS['phpgw']->hooks->single('home',$appname);
|
||||
$var['colspan'] = $colspan;
|
||||
$var['tdwidth'] = $tdwidth;
|
||||
$var['result'] = $result;
|
||||
$var['tdwidth'] = ($thisd==2)?'50':'100';
|
||||
$var['colspan'] = ($thisd==2)?'1':'2';
|
||||
|
||||
ob_start();
|
||||
$var['content'] = $GLOBALS['phpgw']->hooks->single('home',$appname);
|
||||
if (!$var['content'] || $var['content'] == 1) // content has been echoed and not returned
|
||||
{
|
||||
$var['content'] = ob_get_contents();
|
||||
ob_end_clean();
|
||||
}
|
||||
$GLOBALS['tpl']->set_var($var);
|
||||
|
||||
$GLOBALS['tpl']->pfp('out','cell');
|
||||
|
Loading…
Reference in New Issue
Block a user