json_encode() realtime arguments (closes Bug#3260)
This commit is contained in:
parent
753bc7302a
commit
5517741909
|
@ -102,7 +102,7 @@ class RealtimePlugin extends Plugin
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$pluginPath = common_path('plugins/Realtime/');
|
$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() { '.
|
$script = ' $(document).ready(function() { '.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user