mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
some more to allow relative template-names not only for tabs but in general
This commit is contained in:
parent
8099197a78
commit
2d2054b6ad
@ -62,6 +62,13 @@
|
||||
);
|
||||
$this->soetemplate();
|
||||
|
||||
$tname = &$name;
|
||||
if (is_array($name))
|
||||
{
|
||||
$tname = &$name['name'];
|
||||
}
|
||||
$tname = (strstr($tname,'.') === False ? (is_array($load_via) ? $load_via['name'] : $load_via).'.':'').$tname;
|
||||
|
||||
if (empty($name) || !$this->read($name,'','',0,'',$load_via))
|
||||
{
|
||||
$this->init($name);
|
||||
|
@ -212,11 +212,11 @@
|
||||
$tab->set_attribute('statustext',$helps[$n]);
|
||||
$child->add_node($tab);
|
||||
|
||||
$grid = new xmlnode('grid');
|
||||
$grid->set_attribute('id',$names[$n]);
|
||||
$child2->add_node($grid);
|
||||
$embeded = new etemplate($names[$n]);
|
||||
$embeded = new etemplate($names[$n],$etempl->as_array());
|
||||
$this->etempl2grid($embeded,&$root,$embeded_too);
|
||||
$grid = new xmlnode('grid');
|
||||
$grid->set_attribute('id',$embeded->name);
|
||||
$child2->add_node($grid);
|
||||
unset($embeded);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user