summaryrefslogtreecommitdiff
path: root/plugins/Mapstraction
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-11-20 12:04:27 -0800
committerBrion Vibber <brion@pobox.com>2009-11-20 12:04:27 -0800
commitafe5e71c4eae342d4a7c6a462a63a4f475ba355e (patch)
treefc1a12dccc450c4e757e15ccd9928507f03cd9be /plugins/Mapstraction
parent92453936c2a9aaef63f2239a3a6988cab062887c (diff)
Quick fix for Safari XHTML error... the map doesn't currently work with Safari, but this gets the whole page parsing again!
Diffstat (limited to 'plugins/Mapstraction')
-rw-r--r--plugins/Mapstraction/MapstractionPlugin.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Mapstraction/MapstractionPlugin.php b/plugins/Mapstraction/MapstractionPlugin.php
index daedaf40d..c0c2c5b8e 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('/*<![CDATA[*/'); // XHTML compat for Safari
$action->raw('var _notices = ' . json_encode($jsonArray));
+ $action->raw('/*]]>*/'); // XHTML compat for Safari
$action->elementEnd('script');
return true;