|
From: Simon H. <sim...@us...> - 2009-06-25 13:11:48
|
Update of /cvsroot/stack/stack-dev/lib/ui In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13964/lib/ui Modified Files: DisplayItem.php Log Message: Deactivated preg_replace that enables question variables within image tags until I adapt it to avoid deprecated call-time pass-by-reference warnings. Index: DisplayItem.php =================================================================== RCS file: /cvsroot/stack/stack-dev/lib/ui/DisplayItem.php,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** DisplayItem.php 23 Jun 2009 14:39:36 -0000 1.77 --- DisplayItem.php 25 Jun 2009 12:27:43 -0000 1.78 *************** *** 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; --- 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; |