]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Realtime plugin uses Plugin::path()
authorEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 15:58:06 +0000 (10:58 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 15:58:06 +0000 (10:58 -0500)
plugins/Realtime/RealtimePlugin.php

index 113187e1e3167dbfa28b9964d882704b98728658..5d119982f50b62e67a21826df6d38107c10fd83b 100644 (file)
@@ -116,8 +116,9 @@ class RealtimePlugin extends Plugin
 
     function onEndShowStatusNetStyles($action)
     {
-        $action->cssLink('plugins/Realtime/realtimeupdate.css',
-                         null, 'screen, projection, tv');
+        $action->cssLink($this->path('realtimeupdate.css'),
+                         null,
+                         'screen, projection, tv');
         return true;
     }
 
@@ -322,7 +323,7 @@ class RealtimePlugin extends Plugin
 
     function _getScripts()
     {
-        return array('plugins/Realtime/realtimeupdate.min.js');
+        return array($this->path('realtimeupdate.min.js'));
     }
 
     /**