mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +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();
|
$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))
|
if (empty($name) || !$this->read($name,'','',0,'',$load_via))
|
||||||
{
|
{
|
||||||
$this->init($name);
|
$this->init($name);
|
||||||
|
@ -212,11 +212,11 @@
|
|||||||
$tab->set_attribute('statustext',$helps[$n]);
|
$tab->set_attribute('statustext',$helps[$n]);
|
||||||
$child->add_node($tab);
|
$child->add_node($tab);
|
||||||
|
|
||||||
$grid = new xmlnode('grid');
|
$embeded = new etemplate($names[$n],$etempl->as_array());
|
||||||
$grid->set_attribute('id',$names[$n]);
|
|
||||||
$child2->add_node($grid);
|
|
||||||
$embeded = new etemplate($names[$n]);
|
|
||||||
$this->etempl2grid($embeded,&$root,$embeded_too);
|
$this->etempl2grid($embeded,&$root,$embeded_too);
|
||||||
|
$grid = new xmlnode('grid');
|
||||||
|
$grid->set_attribute('id',$embeded->name);
|
||||||
|
$child2->add_node($grid);
|
||||||
unset($embeded);
|
unset($embeded);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user