mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:58:54 +01:00
Corrected problem with config_app always getting set to 'phpgwapi'
This commit is contained in:
parent
5367dfd839
commit
9a7043abc6
@ -20,9 +20,11 @@
|
||||
);
|
||||
include('../header.inc.php');
|
||||
|
||||
if ($appname == 'admin')
|
||||
$config_appname = $appname;
|
||||
if ($appname == 'admin' || $appname == 'preferences')
|
||||
{
|
||||
$appname = 'preferences';
|
||||
$config_appname = 'phpgwapi';
|
||||
}
|
||||
$t = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir($appname));
|
||||
$t->set_unknowns('keep');
|
||||
@ -33,19 +35,13 @@
|
||||
$t->set_block('config','body','body');
|
||||
$t->set_block('config','footer','footer');
|
||||
|
||||
$c = CreateObject('phpgwapi.config',$appname);
|
||||
$c = CreateObject('phpgwapi.config',$config_appname);
|
||||
$c->read_repository();
|
||||
|
||||
if ($c->config_data)
|
||||
{
|
||||
$current_config = $c->config_data;
|
||||
}
|
||||
else
|
||||
{
|
||||
$c->appname = 'phpgwapi';
|
||||
$c->read_repository();
|
||||
$current_config = $c->config_data;
|
||||
}
|
||||
|
||||
if ($cancel)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user