From: <ru...@us...> - 2009-01-17 14:32:51
|
Revision: 6407 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6407&view=rev Author: rurban Date: 2009-01-17 14:32:39 +0000 (Sat, 17 Jan 2009) Log Message: ----------- quote js_script array Modified Paths: -------------- trunk/lib/WikiTheme.php Modified: trunk/lib/WikiTheme.php =================================================================== --- trunk/lib/WikiTheme.php 2009-01-17 14:31:56 UTC (rev 6406) +++ trunk/lib/WikiTheme.php 2009-01-17 14:32:39 UTC (rev 6407) @@ -1493,10 +1493,13 @@ $js_exist = '{"'.join('":1,"',$existing).'":1}'; //var SPECIAL_DAYS = {"2004-05-11":1,"2004-05-12":1,"2004-06-01":1} $this->addMoreHeaders(JavaScript(' -// This table holds the existing calender entries for the current user -// calculated from the database -var SPECIAL_DAYS = '.$js_exist.'; -// This function returns true if the date exists in SPECIAL_DAYS +/* This table holds the existing calender entries for the current user + * calculated from the database + */ + +var SPECIAL_DAYS = '.javascript_quote_string($js_exist).'; + +/* This function returns true if the date exists in SPECIAL_DAYS */ function dateExists(date, y, m, d) { var year = date.getFullYear(); m = m + 1; @@ -1513,7 +1516,8 @@ function dateStatusFunc(date, y, m, d) { if (dateExists(date, y, m, d)) return "existing"; else return false; -}')); +} +')); } else { $this->addMoreHeaders(JavaScript(' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |