]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't forget to strip 'Plugin'. (_MrB_ rocks, MMN-o sucks.)
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 1 Mar 2014 10:07:58 +0000 (11:07 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 1 Mar 2014 10:07:58 +0000 (11:07 +0100)
Paths are like "plugins/Realtime/...", not "plugins/RealtimePlugin/...".

plugins/Realtime/RealtimePlugin.php

index 69182b14fe242d515cce144eec8cad09531d5c92..05bb7714edce4272f3ba4bf32beeeb6e6005f689 100644 (file)
@@ -142,9 +142,9 @@ class RealtimePlugin extends Plugin
 
     public function onEndShowStylesheets(Action $action)
     {
-        $action->cssLink(self::staticPath(__CLASS__, 'css/realtimeupdate.css'),
-                         null,
-                         'screen, projection, tv');
+        $urlpath = self::staticPath(str_replace('Plugin','',__CLASS__),
+                                    'css/realtimeupdate.css');
+        $action->cssLink($urlpath, null, 'screen, projection, tv');
         return true;
     }
 
@@ -391,7 +391,9 @@ class RealtimePlugin extends Plugin
 
     function _getScripts()
     {
-        return array(self::staticPath(__CLASS__, 'js/realtimeupdate.js'));
+        $urlpath = self::staticPath(str_replace('Plugin','',__CLASS__),
+                                    'js/realtimeupdate.js');
+        return array($urlpath);
     }
 
     /**