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 '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));