|
From: Chris S. <san...@us...> - 2009-06-26 18:10:08
|
Update of /cvsroot/stack/stack-dev/lib/ui In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8308/lib/ui Modified Files: DisplayItem.php Log Message: Index: DisplayItem.php =================================================================== RCS file: /cvsroot/stack/stack-dev/lib/ui/DisplayItem.php,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** DisplayItem.php 25 Jun 2009 12:27:43 -0000 1.78 --- DisplayItem.php 26 Jun 2009 18:08:36 -0000 1.79 *************** *** 491,499 **** // hack to allow embedding question variables inside image tag, i.e. for gCharts ! // May throw warnings about Deprecated call-time pass-by-reference though which would break SOAP. ! /* do { $xhtml = preg_replace('/<img (.*)\\$ (\d+) \\$(.*)>/', '<img $1$2$3>', $xhtml, -1, &$count); } while ($count > 0); - */ return $xhtml; --- 491,497 ---- // hack to allow embedding question variables inside image tag, i.e. for gCharts ! do { $xhtml = preg_replace('/<img (.*)\\$ (\d+) \\$(.*)>/', '<img $1$2$3>', $xhtml, -1, &$count); } while ($count > 0); return $xhtml; *************** *** 1423,1426 **** --- 1421,1425 ---- } + //echo "<pre>"; print_r($test_post); echo "</pre>"; return $test_post; } *************** *** 1626,1629 **** --- 1625,1629 ---- } + /* Actually perform the tests on the item */ private function getTestOutcomes() { *************** *** 1639,1643 **** foreach($tests as $test) { // Empty answers do not appear in the $_POST ! // Hence, to mimic the posted data we should unset where neccessary. foreach($test['IE'] as $key=>$val){ if (''==trim($val)) --- 1639,1643 ---- foreach($tests as $test) { // Empty answers do not appear in the $_POST ! // Hence, to mimic the posted data we should unset where necessary. foreach($test['IE'] as $key=>$val){ if (''==trim($val)) *************** *** 1647,1651 **** } // If a PRT is not traversed then the answernote should not exist. ! // This is different from an answernote existing with the value "NONE", so unset where neccessary. foreach($test['PRT'] as $key=>$val){ if ('NONE'==trim($val)) --- 1647,1651 ---- } // If a PRT is not traversed then the answernote should not exist. ! // This is different from an answernote existing with the value "NONE", so unset where necessary. foreach($test['PRT'] as $key=>$val){ if ('NONE'==trim($val)) |