json_encode() realtime arguments (closes Bug#3260)

This commit is contained in:
Evan Prodromou 2011-07-30 07:45:07 -04:00
parent 753bc7302a
commit 5517741909

View File

@ -102,7 +102,7 @@ class RealtimePlugin extends Plugin
}
else {
$pluginPath = common_path('plugins/Realtime/');
$realtimeUI = ' RealtimeUpdate.initActions("'.$url.'", "'.$timeline.'", "'. $pluginPath .'");';
$realtimeUI = ' RealtimeUpdate.initActions('.json_encode($url).', '.json_encode($timeline).', '. json_encode($pluginPath).');';
}
$script = ' $(document).ready(function() { '.