mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fix: load translation only if a gui is involved
This commit is contained in:
parent
ae661608ab
commit
4d200374a2
@ -60,8 +60,6 @@
|
|||||||
$this->fields = $this->get_customfields();
|
$this->fields = $this->get_customfields();
|
||||||
$this->content_types = $this->get_content_types();
|
$this->content_types = $this->get_content_types();
|
||||||
}
|
}
|
||||||
// if($this->tmpl->read($this->appname.'.admin.types')) {$this->manage_content_types = true; echo 'tt';}
|
|
||||||
$GLOBALS['egw']->translation->add_app('infolog'); // til we move the translations
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -72,6 +70,8 @@
|
|||||||
*/
|
*/
|
||||||
function edit($content = null)
|
function edit($content = null)
|
||||||
{
|
{
|
||||||
|
$GLOBALS['egw']->translation->add_app('infolog'); // til we move the translations
|
||||||
|
|
||||||
// determine appname
|
// determine appname
|
||||||
$this->appname = $_GET['appname'] ? $_GET['appname'] : ($content['appname'] ? $content['appname'] : false);
|
$this->appname = $_GET['appname'] ? $_GET['appname'] : ($content['appname'] ? $content['appname'] : false);
|
||||||
if(!$this->appname) die(lang('Error! No appname found'));
|
if(!$this->appname) die(lang('Error! No appname found'));
|
||||||
|
Loading…
Reference in New Issue
Block a user