X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FMeteor%2FMeteorPlugin.php;h=64c2fd3d6902b39e3c36e89a683ce3c6fae02ba4;hb=546a03b5eac5f172d543a889625e2f4de446e8b7;hp=1cff453d61fff3c515404608667e737449d50e46;hpb=8b32ac85d8cbfe1be03836af461d80fddd54fc6c;p=quix0rs-gnu-social.git diff --git a/plugins/Meteor/MeteorPlugin.php b/plugins/Meteor/MeteorPlugin.php index 1cff453d61..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,10 +160,10 @@ class MeteorPlugin extends RealtimePlugin return implode('-', $path); } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'Meteor', - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Evan Prodromou', 'homepage' => 'http://status.net/wiki/Plugin:Meteor', 'rawdescription' =>