forked from GNUsocial/gnu-social
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:
parent
92453936c2
commit
afe5e71c4e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user