]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix for fix for bad realtime JS load
authorBrion Vibber <brion@pobox.com>
Thu, 28 Jan 2010 03:50:08 +0000 (19:50 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 28 Jan 2010 03:50:52 +0000 (19:50 -0800)
plugins/Realtime/RealtimePlugin.php

index 16e28e94d3eed57718c63e9efdd6de916ec0845f..6c212453e4455d12499690e2d83b7b984d70c724 100644 (file)
@@ -87,7 +87,7 @@ class RealtimePlugin extends Plugin
         $scripts = $this->_getScripts();
 
         foreach ($scripts as $script) {
-            $action->script(common_path($script));
+            $action->script($script);
         }
 
         $user = common_current_user();
@@ -307,7 +307,7 @@ class RealtimePlugin extends Plugin
 
     function _getScripts()
     {
-        return array('plugins/Realtime/realtimeupdate.js');
+        return array(common_path('plugins/Realtime/realtimeupdate.js'));
     }
 
     function _updateInitialize($timeline, $user_id)