From: Simon H. <sim...@us...> - 2009-06-27 18:39:51
|
Update of /cvsroot/stack/stack-dev In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13295 Modified Files: index.php Log Message: * Removed obsolete DisplayItem::deployCache(). * All deployment now goes via StackDBCache (which uses Deployment) * Deployment handles auto-deployment of singletons (so others don't have to) and sets a flag if it has done so. Seems to work but needs testing. Index: index.php =================================================================== RCS file: /cvsroot/stack/stack-dev/index.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** index.php 26 Jun 2009 23:11:09 -0000 1.31 --- index.php 27 Jun 2009 18:39:47 -0000 1.32 *************** *** 151,156 **** $deployment = new Deployment($id); if ($deployment->isSingleton()) { ! if($deployment->size() == 0) { // single version, not deployed ! DisplayItem::deployCache($id, 1); $msg .= get_string('FE_deployQuestion_auto', 'stack').' '.$id.'<br />'; } else { --- 151,155 ---- $deployment = new Deployment($id); if ($deployment->isSingleton()) { ! if($deployment->autoDeployed) { // single version, not deployed $msg .= get_string('FE_deployQuestion_auto', 'stack').' '.$id.'<br />'; } else { |