Declare public options on DisqusPlugin to avoid notice warnings on access if not set.

This commit is contained in:
Brion Vibber 2010-09-13 12:06:10 -07:00
parent f17512cfe6
commit 0021c16bd1

View File

@ -71,6 +71,9 @@ if (!defined('STATUSNET')) {
class DisqusPlugin extends Plugin class DisqusPlugin extends Plugin
{ {
public $shortname; // Required 'shortname' for actually triggering Disqus.
public $div_style; // Optional CSS chunk for the main <div>
function onEndShowContentBlock($action) function onEndShowContentBlock($action)
{ {
if (get_class($action) == 'ShownoticeAction') { if (get_class($action) == 'ShownoticeAction') {