]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Quick fix for Safari XHTML error... the map doesn't currently work with Safari, but...
authorBrion Vibber <brion@pobox.com>
Fri, 20 Nov 2009 20:04:27 +0000 (12:04 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 20 Nov 2009 20:04:27 +0000 (12:04 -0800)
plugins/Mapstraction/MapstractionPlugin.php

index daedaf40d0d35bf0a2a1d08801792112227f1d76..c0c2c5b8e357c239648cdcdc63a38fc15104327d 100644 (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;