mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 08:19:45 +01:00
format switch/case
This commit is contained in:
parent
630e221d1b
commit
ff13d7a060
@ -22,24 +22,24 @@
|
|||||||
{
|
{
|
||||||
case 'admin':
|
case 'admin':
|
||||||
case 'preferences':
|
case 'preferences':
|
||||||
$appname = 'preferences';
|
$appname = 'preferences';
|
||||||
$config_appname = 'phpgwapi';
|
$config_appname = 'phpgwapi';
|
||||||
break;
|
break;
|
||||||
case 'addressbook':
|
case 'addressbook':
|
||||||
case 'calendar':
|
case 'calendar':
|
||||||
case 'email':
|
case 'email':
|
||||||
case 'nntp':
|
case 'nntp':
|
||||||
/*
|
/*
|
||||||
Other special apps can go here for now, e.g.:
|
Other special apps can go here for now, e.g.:
|
||||||
case 'bogusappname':
|
case 'bogusappname':
|
||||||
*/
|
*/
|
||||||
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
|
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
|
||||||
$config_appname = 'phpgwapi';
|
$config_appname = 'phpgwapi';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
|
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
|
||||||
$config_appname = $appname;
|
$config_appname = $appname;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$t = CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir($appname));
|
$t = CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir($appname));
|
||||||
|
Loading…
Reference in New Issue
Block a user