From: Mikael Nordfeldth Date: Sat, 1 Mar 2014 10:07:58 +0000 (+0100) Subject: Don't forget to strip 'Plugin'. (_MrB_ rocks, MMN-o sucks.) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a03ec98e7a34ee09ebd81fa396a7d56d51bc394;p=quix0rs-gnu-social.git Don't forget to strip 'Plugin'. (_MrB_ rocks, MMN-o sucks.) Paths are like "plugins/Realtime/...", not "plugins/RealtimePlugin/...". --- diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 69182b14fe..05bb7714ed 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -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); } /**