From: Brion Vibber Date: Fri, 20 Nov 2009 20:04:27 +0000 (-0800) Subject: Quick fix for Safari XHTML error... the map doesn't currently work with Safari, but... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=afe5e71c4eae342d4a7c6a462a63a4f475ba355e;p=quix0rs-gnu-social.git Quick fix for Safari XHTML error... the map doesn't currently work with Safari, but this gets the whole page parsing again! --- diff --git a/plugins/Mapstraction/MapstractionPlugin.php b/plugins/Mapstraction/MapstractionPlugin.php index daedaf40d0..c0c2c5b8e3 100644 --- a/plugins/Mapstraction/MapstractionPlugin.php +++ b/plugins/Mapstraction/MapstractionPlugin.php @@ -179,7 +179,9 @@ class MapstractionPlugin extends Plugin } $action->elementStart('script', array('type' => 'text/javascript')); + $action->raw('/*raw('var _notices = ' . json_encode($jsonArray)); + $action->raw('/*]]>*/'); // XHTML compat for Safari $action->elementEnd('script'); return true;