format switch/case

This commit is contained in:
Miles Lott 2001-12-24 00:30:48 +00:00
parent 630e221d1b
commit ff13d7a060

View File

@ -22,24 +22,24 @@
{
case 'admin':
case 'preferences':
$appname = 'preferences';
$config_appname = 'phpgwapi';
break;
$appname = 'preferences';
$config_appname = 'phpgwapi';
break;
case 'addressbook':
case 'calendar':
case 'email':
case 'nntp':
/*
Other special apps can go here for now, e.g.:
case 'bogusappname':
*/
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
$config_appname = 'phpgwapi';
break;
/*
Other special apps can go here for now, e.g.:
case 'bogusappname':
*/
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
$config_appname = 'phpgwapi';
break;
default:
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
$config_appname = $appname;
break;
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
$config_appname = $appname;
break;
}
$t = CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir($appname));