Quick fix for Safari XHTML error... the map doesn't currently work with Safari, but this gets the whole page parsing again!

This commit is contained in:
Brion Vibber 2009-11-20 12:04:27 -08:00
parent 92453936c2
commit afe5e71c4e

View File

@ -179,7 +179,9 @@ class MapstractionPlugin extends Plugin
}
$action->elementStart('script', array('type' => 'text/javascript'));
$action->raw('/*<![CDATA[*/'); // XHTML compat for Safari
$action->raw('var _notices = ' . json_encode($jsonArray));
$action->raw('/*]]>*/'); // XHTML compat for Safari
$action->elementEnd('script');
return true;