require_once lines were required since _plugins_ don't __autoload
Also, Realtime would load the wrong URL for css/js since $this->name()
returns get_class($this) instead of the calling class' __CLASS__.
exit(1);
}
+require_once INSTALLDIR.'/plugins/Realtime/RealtimePlugin.php';
+
/**
* Plugin to do realtime updates using Comet
*
exit(1);
}
+require_once INSTALLDIR.'/plugins/Realtime/RealtimePlugin.php';
+
/**
* Plugin to do realtime updates using Meteor
*
exit(1);
}
+require_once INSTALLDIR.'/plugins/Realtime/RealtimePlugin.php';
+
/**
* Plugin to do realtime updates using Orbited + STOMP
*
public function onEndShowStylesheets(Action $action)
{
- $action->cssLink($this->path('css/realtimeupdate.css'),
+ $action->cssLink(self::staticPath(__CLASS__, 'css/realtimeupdate.css'),
null,
'screen, projection, tv');
return true;
function _getScripts()
{
- return array($this->path('js/realtimeupdate.js'));
+ return array(self::staticPath(__CLASS__, 'js/realtimeupdate.js'));
}
/**