- switch (getConfig('admin_menu')) {
- case 'NEW':
- define('__ADMIN_MENU_NEW', ' checked='checked'');
- define('__ADMIN_MENU_OLD' , '');
- break;
-
- case 'OLD':
- define('__ADMIN_MENU_NEW', '');
- define('__ADMIN_MENU_OLD' , ' checked='checked'');
- break;
- }
+ $content['admin_menu_new'] = '';
+ $content['admin_menu_old'] = '';
+ $content['admin_menu_' . strtolower(getAdminMenu())] = ' checked="checked"';