* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
+if (!defined('GNUSOCIAL') && !defined('STATUSNET')) {
exit(1);
}
} 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;
}
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' =>