X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FMeteor%2FMeteorPlugin.php;h=64c2fd3d6902b39e3c36e89a683ce3c6fae02ba4;hb=53e820b46667c2f0e22ffa0a2f91e847a02f4cb8;hp=d65fe3f0e51cd45a637d4c5ba6cc8806efde8341;hpb=f110fc5c9a61ac666d88714b170b12f99d911b11;p=quix0rs-gnu-social.git diff --git a/plugins/Meteor/MeteorPlugin.php b/plugins/Meteor/MeteorPlugin.php index d65fe3f0e5..64c2fd3d69 100644 --- a/plugins/Meteor/MeteorPlugin.php +++ b/plugins/Meteor/MeteorPlugin.php @@ -27,7 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET') && !defined('LACONICA')) { +if (!defined('GNUSOCIAL') && !defined('STATUSNET')) { exit(1); } @@ -96,17 +96,18 @@ class MeteorPlugin extends RealtimePlugin } else { $scripts[] = 'http://'.$this->webserver.(($this->webport == 80) ? '':':'.$this->webport).'/meteor.js'; } - $scripts[] = $this->path('meteorupdater.min.js'); + $scripts[] = $this->path('js/meteorupdater.js'); return $scripts; } function _updateInitialize($timeline, $user_id) { $script = parent::_updateInitialize($timeline, $user_id); - $ours = sprintf("MeteorUpdater.init(%s, %s, %s);", - json_encode($this->webserver), - json_encode($this->webport), - json_encode($timeline)); + $ours = sprintf("MeteorUpdater.init(%s, %s, %s, %s);", + json_encode($this->webserver), + json_encode($this->webport), + json_encode($this->protocol), + json_encode($timeline)); return $script." ".$ours; } @@ -159,7 +160,7 @@ class MeteorPlugin extends RealtimePlugin return implode('-', $path); } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'Meteor', 'version' => GNUSOCIAL_VERSION,