]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix Bug#3260 for 1.0.x
authorEvan Prodromou <evan@status.net>
Sat, 30 Jul 2011 12:17:57 +0000 (08:17 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 30 Jul 2011 12:17:57 +0000 (08:17 -0400)
plugins/Realtime/RealtimePlugin.php

index eca3a8b029be1f90ebee22158f761f68c9117460..84a1c7e86e84a45edcee5c67d894a7f7cd7f48ad 100644 (file)
@@ -147,7 +147,7 @@ class RealtimePlugin extends Plugin
             $pluginPath = common_path('plugins/Realtime/');
             $keepalive = common_local_url('keepalivechannel', array('channelkey' => $channel->channel_key));
             $close = common_local_url('closechannel', array('channelkey' => $channel->channel_key));
-            $realtimeUI = ' RealtimeUpdate.initActions("'.$url.'", "'.$timeline.'", "'. $pluginPath .'", "'.$keepalive.'", "'.$close.'"); ';
+            $realtimeUI = ' RealtimeUpdate.initActions('.json_encode($url).', '.json_encode($timeline).', '.json_encode($pluginPath).', '.json_encode($keepalive).', '.json_encode($close).'); ';
         }
 
         $script = ' $(document).ready(function() { '.