From: <mi...@us...> - 2005-06-29 21:07:07
|
Update of /cvsroot/egroupware/phpgwapi/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32498 Modified Files: class.common.inc.php Log Message: only show template set that contain a setup.inc.php Index: class.common.inc.php =================================================================== RCS file: /cvsroot/egroupware/phpgwapi/inc/class.common.inc.php,v retrieving revision 1.255 retrieving revision 1.256 diff -C2 -d -r1.255 -r1.256 *** class.common.inc.php 20 Jun 2005 11:14:40 -0000 1.255 --- class.common.inc.php 29 Jun 2005 21:06:52 -0000 1.256 *************** *** 747,760 **** while ($entry=$d->read()) { ! if ($entry != 'CVS' && $entry != '.' && $entry != '..' ! && $entry != 'phpgw_website' ! && is_dir(EGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry)) { $list[$entry]['name'] = $entry; ! $f = EGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry . '/details.inc.php'; if (file_exists ($f)) { include($f); ! $list[$entry]['title'] = 'Use '.$GLOBALS['egw_info']['template'][$entry]['title'].'interface'; } else --- 747,759 ---- while ($entry=$d->read()) { ! if ($entry != '..' && is_file(EGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry .'/setup/setup.inc.php') ! ) { $list[$entry]['name'] = $entry; ! $f = EGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry . '/setup/setup.inc.php'; if (file_exists ($f)) { include($f); ! $list[$entry]['title'] = $GLOBALS['egw_info']['template'][$entry]['title']; } else *************** *** 764,767 **** --- 763,769 ---- } } + //_debug_array($GLOBALS['egw_info'][template]); + //die(); + $d->close(); ksort($list); |