Created
March 1, 2014 09:49
-
-
Save mrvdb/9287692 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php | |
index 25b009f..cff0bcb 100644 | |
--- a/plugins/Realtime/RealtimePlugin.php | |
+++ b/plugins/Realtime/RealtimePlugin.php | |
@@ -145,7 +145,7 @@ class RealtimePlugin extends Plugin | |
public function onEndShowStylesheets(Action $action) | |
{ | |
- $action->cssLink(self::staticPath(__CLASS__, 'css/realtimeupdate.css'), | |
+ $action->cssLink(self::staticPath(str_replace('Plugin','',__CLASS__), 'css/realtimeupdate.css'), | |
null, | |
'screen, projection, tv'); | |
return true; | |
@@ -394,7 +394,7 @@ class RealtimePlugin extends Plugin | |
function _getScripts() | |
{ | |
- return array(self::staticPath(__CLASS__, 'js/realtimeupdate.js')); | |
+ return array(self::staticPath(str_replace('Plugin','',__CLASS__), 'js/realtimeupdate.js')); | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment